將字串索引鍵對應至 Attribute 執行個體。
命名空間: Microsoft.Windows.Design.PropertyEditing
組件: Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)
語法
'宣告
Public Structure KeyAttributePair(Of T As Attribute)
public struct KeyAttributePair<T>
where T : Attribute
generic<typename T>
where T : Attribute
public value class KeyAttributePair
[<Sealed>]
type KeyAttributePair<'T when 'T : Attribute> = struct end
JScript 不支援泛型型別或方法。
型別參數
- T
屬性的型別。
KeyAttributePair<T> 型別會公開下列成員。
建構函式
| 名稱 | 說明 | |
|---|---|---|
![]() |
KeyAttributePair<T> | 初始化 KeyAttributePair<T> 類別的新執行個體。 |
回頁首
屬性
| 名稱 | 說明 | |
|---|---|---|
![]() |
Key | 取得目前 KeyAttributePair<T> 的索引鍵。 |
![]() |
Value | 取得目前 KeyAttributePair<T> 的 Attribute。 |
回頁首
方法
| 名稱 | 說明 | |
|---|---|---|
![]() |
Equals | 判斷指定的 KeyAttributePair<T> 與目前的 KeyAttributePair<T> 是否相等。 (覆寫 ValueType.Equals(Object)。) |
![]() |
Finalize | 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。 |
![]() |
GetHashCode | 傳回目前 KeyAttributePair<T> 的雜湊程式碼。 (覆寫 ValueType.GetHashCode()。) |
![]() |
GetType | 取得目前執行個體的 Type。 (繼承自 Object)。 |
![]() |
MemberwiseClone | 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。 |
![]() |
ToString | 傳回這個執行個體的完整型別名稱。 (繼承自 ValueType)。 |
回頁首
運算子
| 名稱 | 說明 | |
|---|---|---|
![]() ![]() |
Equality | 判斷指定的 KeyAttributePair<T> 執行個體是否視為相等。 |
![]() ![]() |
Inequality | 判斷指定的 KeyAttributePair<T> 執行個體是否視為不相等。 |
回頁首
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。
請參閱
參考
Microsoft.Windows.Design.PropertyEditing 命名空間
.gif)
.gif)
.gif)
.gif)
.gif)