Freigeben über


ParameterBindingAttribute Class

Attribute on a parameter or type that produces a HttpParameterBinding. If the attribute is on a type-declaration, then it's as if that attribute is present on all action parameters of that type.

Inheritance Hierarchy

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

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 MustInherit Class ParameterBindingAttribute _
    Inherits Attribute
'Usage
Dim instance As ParameterBindingAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Parameter, Inherited = true, 
    AllowMultiple = false)]
public abstract class ParameterBindingAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Parameter, Inherited = true, 
    AllowMultiple = false)]
public ref class ParameterBindingAttribute abstract : public Attribute
[<AbstractClassAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Parameter, Inherited = true, 
    AllowMultiple = false)>]
type ParameterBindingAttribute =  
    class 
        inherit Attribute 
    end
public abstract class ParameterBindingAttribute extends Attribute

The ParameterBindingAttribute type exposes the following members.

Constructors

  Name Description
Protected method ParameterBindingAttribute Initializes a new instance of the ParameterBindingAttribute class.

Top

Properties

  Name Description
Public property TypeId (Inherited from Attribute.)

Top

Methods

  Name Description
Public method Equals (Inherited from Attribute.)
Protected method Finalize (Inherited from Object.)
Public method GetBinding Gets the parameter binding.
Public method GetHashCode (Inherited from Attribute.)
Public method GetType (Inherited from Object.)
Public method IsDefaultAttribute (Inherited from Attribute.)
Public method Match (Inherited from Attribute.)
Protected method MemberwiseClone (Inherited from Object.)
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