FromQueryAttribute Class¶
Specifies that a parameter or property should be bound using the request query string.
- Namespace
Microsoft.AspNetCore.Mvc
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Inheritance Hierarchy¶
System.Object
System.Attribute
Microsoft.AspNetCore.Mvc.FromQueryAttribute
Syntax¶
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class FromQueryAttribute : Attribute, _Attribute, IBindingSourceMetadata, IModelNameProvider
-
class
Microsoft.AspNetCore.Mvc.
FromQueryAttribute
Properties¶
-
Microsoft.AspNetCore.Mvc.FromQueryAttribute.
BindingSource
¶ Return type: Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource public BindingSource BindingSource { get; }
-
Microsoft.AspNetCore.Mvc.FromQueryAttribute.
Name
¶ Return type: System.String public string Name { get; set; }
-