Share via


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

Name Description
ModelBinderAttribute(Type)

Initializes a new instance of the ModelBinderAttribute class.

Properties

Name Description
BinderType

Gets or sets the type of the binder.

Methods

Name Description
GetBinder()

Retrieves an instance of the model binder.

Applies to