BindAttribute 類別

定義

表示屬性,用來提供應該如何將模型繫結至參數的詳細資料。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)]
public sealed class BindAttribute : Attribute
type BindAttribute = class
    inherit Attribute
Public NotInheritable Class BindAttribute
Inherits Attribute
繼承
BindAttribute
屬性

建構函式

BindAttribute()

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

屬性

Exclude

取得或設定不允許進行繫結之屬性名稱的清單 (以逗號分隔)。

Include

取得或設定允許進行繫結之屬性名稱的清單 (以逗號分隔)。

Prefix

取得或設定為了繫結至動作引數或模型屬性而呈現標記時所要使用的前置字元。

方法

IsPropertyAllowed(String)

判斷是否允許指定的屬性。

適用於