共用方式為


ModelBinderAttribute Constructor

Initializes a new instance of the ModelBinderAttribute class.

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

Syntax

'Declaration
Public Sub New ( _
    binderType As Type _
)
public ModelBinderAttribute(
    Type binderType
)
public:
ModelBinderAttribute(
    Type^ binderType
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The binderType parameter is null reference (Nothing in Visual Basic).

See Also

Reference

ModelBinderAttribute Class

System.Web.Mvc Namespace