FromUriAttribute Class

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

Namespace
System.Web.Http
Assemblies
  • Microsoft.AspNetCore.Mvc.WebApiCompatShim

Syntax

[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class FromUriAttribute : Attribute, _Attribute, IOptionalBinderMetadata, IBindingSourceMetadata, IModelNameProvider
class System.Web.Http.FromUriAttribute

Properties

System.Web.Http.FromUriAttribute.BindingSource
Return type:Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource
public BindingSource BindingSource { get; }
System.Web.Http.FromUriAttribute.IsOptional
Return type:System.Boolean
public bool IsOptional { get; set; }
System.Web.Http.FromUriAttribute.Name
Return type:System.String
public string Name { get; set; }