ModelBinderAttribute ModelBinderAttribute ModelBinderAttribute Class

Definition

Represents an attribute that is used to associate a model type to a model-builder type.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=false)]
public sealed class ModelBinderAttribute : System.Web.Mvc.CustomModelBinderAttribute
type ModelBinderAttribute = class
    inherit CustomModelBinderAttribute
Public NotInheritable Class ModelBinderAttribute
Inherits CustomModelBinderAttribute
Inheritance
Attributes

Constructors

ModelBinderAttribute(Type) ModelBinderAttribute(Type) ModelBinderAttribute(Type)

Initializes a new instance of the ModelBinderAttribute class.

Properties

BinderType BinderType BinderType

Gets or sets the type of the binder.

Methods

GetBinder() GetBinder() GetBinder()

Retrieves an instance of the model binder.

Applies to