Sdílet prostřednictvím


ModelBinderAttribute Třída

Definice

Představuje atribut, který se používá k přidružení typu modelu k typu tvůrce 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
Dědičnost
ModelBinderAttribute
Atributy

Konstruktory

ModelBinderAttribute(Type)

Inicializuje novou instanci ModelBinderAttribute třídy .

Vlastnosti

BinderType

Získá nebo nastaví typ pořadače.

Metody

GetBinder()

Načte instanci pořadače modelu.

Platí pro