Freigeben über


FromUriAttribute Class

An attribute that specifies that an action parameter comes from the URI of the incoming HttpRequestMessage.

Inheritance Hierarchy

System.Object
  System.Attribute
    System.Web.Http.ParameterBindingAttribute
      System.Web.Http.ModelBinding.ModelBinderAttribute
        System.Web.Http.FromUriAttribute

Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Parameter, Inherited := True,  _
    AllowMultiple := False)> _
Public NotInheritable Class FromUriAttribute _
    Inherits ModelBinderAttribute
'Usage
Dim instance As FromUriAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Parameter, Inherited = true, 
    AllowMultiple = false)]
public sealed class FromUriAttribute : ModelBinderAttribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Parameter, Inherited = true, 
    AllowMultiple = false)]
public ref class FromUriAttribute sealed : public ModelBinderAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Parameter, Inherited = true, 
    AllowMultiple = false)>]
type FromUriAttribute =  
    class
        inherit ModelBinderAttribute
    end
public final class FromUriAttribute extends ModelBinderAttribute

The FromUriAttribute type exposes the following members.

Constructors

  Name Description
Public method FromUriAttribute Initializes a new instance of the FromUriAttribute class.

Top

Properties

  Name Description
Public property BinderType Gets or sets the type of model binder. (Inherited from ModelBinderAttribute.)
Public property Name Gets or sets the name to consider as the parameter name during model binding. (Inherited from ModelBinderAttribute.)
Public property SuppressPrefixCheck Gets or sets a value that specifies whether the prefix check should be suppressed. (Inherited from ModelBinderAttribute.)
Public property TypeId (Inherited from Attribute.)

Top

Methods

  Name Description
Public method Equals (Inherited from Attribute.)
Public method GetBinding Gets the binding for a parameter. (Inherited from ModelBinderAttribute.)
Public method GetHashCode (Inherited from Attribute.)
Public method GetModelBinder Get the IModelBinder for this type. (Inherited from ModelBinderAttribute.)
Public method GetModelBinderProvider Gets the model binder provider. (Inherited from ModelBinderAttribute.)
Public method GetType (Inherited from Object.)
Public method GetValueProviderFactories Gets the value provider factories for the model binder. (Overrides ModelBinderAttribute.GetValueProviderFactories(HttpConfiguration).)
Public method IsDefaultAttribute (Inherited from Attribute.)
Public method Match (Inherited from Attribute.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method _Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.Invoke (Inherited from Attribute.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http Namespace