Condividi tramite


ModelBinderAttribute Classe

Definizione

Rappresenta un attributo utilizzato per associare un tipo di modello a un tipo di compilatore di modelli.

[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
Ereditarietà
ModelBinderAttribute
Attributi

Costruttori

ModelBinderAttribute(Type)

Inizializza una nuova istanza della classe ModelBinderAttribute.

Proprietà

BinderType

Ottiene o imposta il tipo del gestore di associazione.

Metodi

GetBinder()

Recupera un'istanza del gestore di associazione del modello.

Si applica a