Partager via


ModelBinderAttribute Constructor (Type)

Initializes a new instance of the ModelBinderAttribute class.

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

Syntax

'Declaration
Public Sub New ( _
    binderType As Type _
)
'Usage
Dim binderType As Type

Dim instance As New ModelBinderAttribute(binderType)
public ModelBinderAttribute(
    Type binderType
)
public:
ModelBinderAttribute(
    Type^ binderType
)
new : 
        binderType:Type -> ModelBinderAttribute
public function ModelBinderAttribute(
    binderType : Type
)

Parameters

  • binderType
    Type: System.Type
    The type of model binder.

See Also

Reference

ModelBinderAttribute Class

ModelBinderAttribute Overload

System.Web.Http.ModelBinding Namespace