共用方式為


KeyAttributePair<T> 建構函式

初始化 KeyAttributePair<T> 類別的新執行個體。

命名空間:  Microsoft.Windows.Design.PropertyEditing
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public Sub New ( _
    key As String, _
    value As T _
)
public KeyAttributePair(
    string key,
    T value
)
public:
KeyAttributePair(
    String^ key, 
    T value
)
new : 
        key:string * 
        value:'T -> KeyAttributePair
public function KeyAttributePair(
    key : String, 
    value : T
)

參數

  • key
    型別:System.String
    要與 value 產生關聯的唯一字串。
  • value
    型別:T
    要與 key 產生關聯的 Attribute

.NET Framework 安全性

請參閱

參考

KeyAttributePair<T> 結構

Microsoft.Windows.Design.PropertyEditing 命名空間

其他資源

屬性編輯架構

WPF 設計工具擴充性