Compartilhar via


CustomModelBinderAttribute.GetBinder Method

Retrieves the associated model binder.

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

Syntax

'Declaration
Public MustOverride Function GetBinder As IModelBinder
'Usage
Dim instance As CustomModelBinderAttribute
Dim returnValue As IModelBinder

returnValue = instance.GetBinder()
public abstract IModelBinder GetBinder()
public:
virtual IModelBinder^ GetBinder() abstract
abstract GetBinder : unit -> IModelBinder 
public abstract function GetBinder() : IModelBinder

Return Value

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

See Also

Reference

CustomModelBinderAttribute Class

System.Web.Http.ModelBinding Namespace