ModelBinderAttribute Klasse

Definition

Stellt ein Attribut dar, das zum Zuordnen eines Modelltyps zu einem Modellgenerator-Typ verwendet wird.

[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
Vererbung
ModelBinderAttribute
Attribute

Konstruktoren

ModelBinderAttribute(Type)

Initialisiert eine neue Instanz der ModelBinderAttribute-Klasse.

Eigenschaften

BinderType

Ruft den Typ des Binders ab bzw. legt diesen fest.

Methoden

GetBinder()

Ruft eine Instanz des Modellbinders ab.

Gilt für: