Share via


FromUriAttribute Class

Definition

An attribute that specifies that the value can be bound from the query string or route data.

C#
[System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)]
public class FromUriAttribute : Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IOptionalBinderMetadata
Inheritance
FromUriAttribute
Attributes
Implements

Constructors

FromUriAttribute()

Initializes a new instance of the FromUriAttribute class.

Properties

BindingSource

Gets the BindingSource.

IsOptional

Gets a value indicating whether the parameter participates in ASP.NET Web API action overloading. If true, the parameter does not participate in overloading. Otherwise, it does.

Name

Model name.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2