ModelBinderAttribute<TBinder> 類別

定義

屬性,可指定要用於系結的模型名稱或型 IModelBinder 別。

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

類型參數

TBinder

Type 作 的 IModelBinder

繼承
ModelBinderAttribute<TBinder>

備註

這是 的 ModelBinderAttribute 衍生泛型變體。 請確定目標上只提供任一屬性的一個實例。

建構函式

ModelBinderAttribute<TBinder>()

初始化 ModelBinderAttribute 的新執行個體。

屬性

BinderType

Type 實作任一 IModelBinder 個 。

(繼承來源 ModelBinderAttribute)
BindingSource

取得 BindingSource

(繼承來源 ModelBinderAttribute)
Name

模型名稱。

(繼承來源 ModelBinderAttribute)

適用於