Udostępnij za pośrednictwem


ModelBinderAttribute Klasa

Definicja

Reprezentuje atrybut używany do kojarzenia typu modelu z typem konstruktora modelu.

[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
Dziedziczenie
ModelBinderAttribute
Atrybuty

Konstruktory

ModelBinderAttribute(Type)

Inicjuje nowe wystąpienie klasy ModelBinderAttribute.

Właściwości

BinderType

Pobiera lub ustawia typ bindera.

Metody

GetBinder()

Pobiera wystąpienie powiązania modelu.

Dotyczy