Compartilhar via


ModelBinderAttribute.GetBinder Method

Retrieves an instance of the model binder.

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

Syntax

'Declaration
Public Overrides Function GetBinder As IModelBinder
public override IModelBinder GetBinder()
public:
virtual IModelBinder^ GetBinder() override

Return Value

Type: System.Web.Mvc.IModelBinder
A reference to an object that implements the IModelBinder interface.

Exceptions

Exception Condition
InvalidOperationException

An error occurred while an instance of the model binder was being created.

See Also

Reference

ModelBinderAttribute Class

System.Web.Mvc Namespace