ModelBinderAttribute Klasa

Definicja

Atrybut, który może określać nazwę modelu lub typ IModelBinder do użycia na potrzeby powiązania.

public ref class ModelBinderAttribute : Attribute, Microsoft::AspNetCore::Mvc::ModelBinding::IBinderTypeProviderMetadata, Microsoft::AspNetCore::Mvc::ModelBinding::IModelNameProvider
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=true)]
public class ModelBinderAttribute : Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBinderTypeProviderMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=true)>]
type ModelBinderAttribute = class
    inherit Attribute
    interface IModelNameProvider
    interface IBinderTypeProviderMetadata
    interface IBindingSourceMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=true)>]
type ModelBinderAttribute = class
    inherit Attribute
    interface IBinderTypeProviderMetadata
    interface IBindingSourceMetadata
    interface IModelNameProvider
Public Class ModelBinderAttribute
Inherits Attribute
Implements IBinderTypeProviderMetadata, IModelNameProvider
Dziedziczenie
ModelBinderAttribute
Pochodne
Atrybuty
Implementuje

Konstruktory

ModelBinderAttribute()

Inicjuje nowe wystąpienie klasy ModelBinderAttribute.

ModelBinderAttribute(Type)

Inicjuje nowe wystąpienie klasy ModelBinderAttribute.

Właściwości

BinderType

Element Type , który implementuje jedną z nich IModelBinder.

BindingSource

Pobiera klasę BindingSource.

Name

Nazwa modelu.

Dotyczy