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.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Parameter | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)]
public sealed class ModelBinderAttribute : System.Web.Mvc.CustomModelBinderAttribute
type ModelBinderAttribute = class
    inherit CustomModelBinderAttribute
Public NotInheritable Class ModelBinderAttribute
Inherits CustomModelBinderAttribute
Inheritance
ModelBinderAttribute
Attributes

Constructors

ModelBinderAttribute(Type)

Initializes a new instance of the ModelBinderAttribute class.

Properties

BinderType

Gets or sets the type of the binder.

Methods

GetBinder()

Retrieves an instance of the model binder.

Applies to