ModelBinderAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |