ModelBinderAttribute<TBinder> Klasa

Definicja

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

public class ModelBinderAttribute<TBinder> : Microsoft.AspNetCore.Mvc.ModelBinderAttribute where TBinder : IModelBinder
type ModelBinderAttribute<'Binder (requires 'Binder :> IModelBinder)> = class
    inherit ModelBinderAttribute
Public Class ModelBinderAttribute(Of TBinder)
Inherits ModelBinderAttribute

Parametry typu

TBinder

Element Type , który implementuje IModelBinderelement .

Dziedziczenie
ModelBinderAttribute<TBinder>

Uwagi

Jest to pochodny wariant ogólny klasy ModelBinderAttribute. Upewnij się, że w obiekcie docelowym znajduje się tylko jedno wystąpienie jednego z atrybutów.

Konstruktory

ModelBinderAttribute<TBinder>()

Inicjuje nowe wystąpienie klasy ModelBinderAttribute.

Właściwości

BinderType

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

(Odziedziczone po ModelBinderAttribute)
BindingSource

Pobiera klasę BindingSource.

(Odziedziczone po ModelBinderAttribute)
Name

Nazwa modelu.

(Odziedziczone po ModelBinderAttribute)

Dotyczy