Aracılığıyla paylaş


ModelBinderAttribute<TBinder> Sınıf

Tanım

Bağlama için kullanılacak model adını veya türünü IModelBinder belirtebilen bir öznitelik.

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

Tür Parametreleri

TBinder

uygulayan TypeIModelBinderbir.

Devralma
ModelBinderAttribute<TBinder>

Açıklamalar

Bu, öğesinin türetilmiş genel bir çeşididir ModelBinderAttribute. Hedefte iki özniteliğin yalnızca bir örneğinin sağlandığından emin olun.

Oluşturucular

ModelBinderAttribute<TBinder>()

öğesinin yeni bir örneğini ModelBinderAttributebaşlatır.

Özellikler

BinderType

herhangi Type birini IModelBinderuygulayan bir .

(Devralındığı yer: ModelBinderAttribute)
BindingSource

BindingSource öğesini alır.

(Devralındığı yer: ModelBinderAttribute)
Name

Model adı.

(Devralındığı yer: ModelBinderAttribute)

Şunlara uygulanır