ModelBinderAttribute 類別

定義

表示用來在模型型別與模型產生器型別之間建立關聯的屬性。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Parameter | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)]
public sealed class ModelBinderAttribute : System.Web.Mvc.CustomModelBinderAttribute
type ModelBinderAttribute = class
    inherit CustomModelBinderAttribute
Public NotInheritable Class ModelBinderAttribute
Inherits CustomModelBinderAttribute
繼承
ModelBinderAttribute
屬性

建構函式

ModelBinderAttribute(Type)

初始化 ModelBinderAttribute 類別的新執行個體。

屬性

BinderType

取得或設定繫結器的型別。

方法

GetBinder()

擷取模型繫結器的執行個體。

適用於