Partager via


ModelBinderAttribute.BinderType Property

Gets or sets the type of model binder.

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

Syntax

'Declaration
Public Property BinderType As Type
    Get
    Set
'Usage
Dim instance As ModelBinderAttribute
Dim value As Type

value = instance.BinderType

instance.BinderType = value
public Type BinderType { get; set; }
public:
property Type^ BinderType {
    Type^ get ();
    void set (Type^ value);
}
member BinderType : Type with get, set
function get BinderType () : Type
function set BinderType (value : Type)

Property Value

Type: System.Type
The type of model binder.

Remarks

The specified type must derive from either ModelBinderProvider or IModelBinder. If null, the default from the configuration is used.

See Also

Reference

ModelBinderAttribute Class

System.Web.Http.ModelBinding Namespace