ModelBinderAttribute<TBinder> Třída

Definice

Atribut, který může zadat název modelu nebo typ IModelBinder , který se má použít pro vazbu.

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

A Type , která implementuje IModelBinder.

Dědičnost
ModelBinderAttribute<TBinder>

Poznámky

Toto je odvozená obecná varianta ModelBinderAttributemetody . Ujistěte se, že cíl poskytuje pouze jednu instanci některého z atributů.

Konstruktory

ModelBinderAttribute<TBinder>()

Inicializuje novou instanci .ModelBinderAttribute

Vlastnosti

BinderType

A Type , který implementuje buď IModelBinder.

(Zděděno od ModelBinderAttribute)
BindingSource

Získá .BindingSource

(Zděděno od ModelBinderAttribute)
Name

Název modelu.

(Zděděno od ModelBinderAttribute)

Platí pro