MetadataDictionary 類別

繼承階層架構

System.Object
  System.Collections.Generic.Dictionary<String, String>
    Microsoft.TeamFoundation.Deployment.Workflow.Activities.MetadataDictionary

命名空間:  Microsoft.TeamFoundation.Deployment.Workflow.Activities
組件:  Microsoft.TeamFoundation.Deployment.Workflow (在 Microsoft.TeamFoundation.Deployment.Workflow.dll 中)

語法

'宣告
<CollectionDataContractAttribute(Name := "Metadata", ItemName := "NameValuePair",  _
    KeyName := "Name", ValueName := "Value", Namespace := "https://schemas.microsoft.com/windowsazure")> _
Public NotInheritable Class MetadataDictionary _
    Inherits Dictionary(Of String, String)
[CollectionDataContractAttribute(Name = "Metadata", ItemName = "NameValuePair", KeyName = "Name", 
    ValueName = "Value", Namespace = "https://schemas.microsoft.com/windowsazure")]
public sealed class MetadataDictionary : Dictionary<string, string>

MetadataDictionary 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 Comparer 取得 IEqualityComparer<T>,用於判斷字典的索引鍵是否相等。 (繼承自 Dictionary<String, String>)。
公用屬性 Count 取得 Dictionary<TKey, TValue> 中所包含的索引鍵/值組數目。 (繼承自 Dictionary<String, String>)。
公用屬性 Item 取得或設定和指定索引鍵關聯的值。 (繼承自 Dictionary<String, String>)。
公用屬性 Keys 取得集合,包含 Dictionary<TKey, TValue> 中的索引鍵。 (繼承自 Dictionary<String, String>)。
公用屬性 Values 取得集合,包含 Dictionary<TKey, TValue> 中的值。 (繼承自 Dictionary<String, String>)。

回頁首

方法

  名稱 描述
公用方法 Add 將指定的索引鍵和值加入字典。 (繼承自 Dictionary<String, String>)。
公用方法 Clear Dictionary<TKey, TValue> 移除所有索引鍵和值。 (繼承自 Dictionary<String, String>)。
公用方法 ContainsKey 判斷 Dictionary<TKey, TValue> 是否包含指定的索引鍵。 (繼承自 Dictionary<String, String>)。
公用方法 ContainsValue 判斷 Dictionary<TKey, TValue> 是否包含特定值。 (繼承自 Dictionary<String, String>)。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法 GetEnumerator 傳回在 Dictionary<TKey, TValue> 中逐一查看的列舉值。 (繼承自 Dictionary<String, String>)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetObjectData 安全性關鍵。實作 System.Runtime.Serialization.ISerializable 介面,並傳回序列化 Dictionary<TKey, TValue> 執行個體所需的資料。 (繼承自 Dictionary<String, String>)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 OnDeserialization 實作 System.Runtime.Serialization.ISerializable 介面,並於還原序列化 (Deserialization) 完成時,引發還原序列化事件。 (繼承自 Dictionary<String, String>)。
公用方法 Remove 移除 Dictionary<TKey, TValue> 中具有指定索引鍵的值。 (繼承自 Dictionary<String, String>)。
公用方法 ToString (覆寫 Object.ToString()。)
公用方法 TryGetValue 取得與指定索引鍵關聯的值。 (繼承自 Dictionary<String, String>)。

回頁首

明確介面實作

  名稱 描述
明確介面實作私用方法 ICollection<KeyValuePair<TKey, TValue>>.Add 將指定的值加入具有指定索引鍵的 ICollection<T>。 (繼承自 Dictionary<String, String>)。
明確介面實作私用方法 IDictionary.Add 將指定的索引鍵和值加入字典。 (繼承自 Dictionary<String, String>)。
明確介面實作私用方法 ICollection<KeyValuePair<TKey, TValue>>.Contains 判斷 ICollection<T> 是否包含特定索引鍵和值。 (繼承自 Dictionary<String, String>)。
明確介面實作私用方法 IDictionary.Contains 判斷 IDictionary 是否包含具有指定之索引鍵的項目。 (繼承自 Dictionary<String, String>)。
明確介面實作私用方法 ICollection<KeyValuePair<TKey, TValue>>.CopyTo 從指定的陣列索引處開始,將 ICollection<T> 的項目複製到型別 KeyValuePair<TKey, TValue> 的陣列。 (繼承自 Dictionary<String, String>)。
明確介面實作私用方法 ICollection.CopyTo 從指定的陣列索引處開始,將 ICollection<T> 的項目複製到陣列。 (繼承自 Dictionary<String, String>)。
明確介面實作私用方法 IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator 傳回可逐一查看集合的列舉程式。 (繼承自 Dictionary<String, String>)。
明確介面實作私用方法 IEnumerable.GetEnumerator 傳回可逐一查看集合的列舉程式。 (繼承自 Dictionary<String, String>)。
明確介面實作私用方法 IDictionary.GetEnumerator 傳回 IDictionaryIDictionaryEnumerator。 (繼承自 Dictionary<String, String>)。
明確介面實作私用屬性 IDictionary.IsFixedSize 取得值,指出 IDictionary 是否有固定的大小。 (繼承自 Dictionary<String, String>)。
明確介面實作私用屬性 ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly 取得值,指出字典是否為唯讀。 (繼承自 Dictionary<String, String>)。
明確介面實作私用屬性 IDictionary.IsReadOnly 取得值,指出 IDictionary 是否唯讀。 (繼承自 Dictionary<String, String>)。
明確介面實作私用屬性 ICollection.IsSynchronized 取得值,這個值表示對 ICollection 的存取是否同步 (安全執行緒)。 (繼承自 Dictionary<String, String>)。
明確介面實作私用屬性 IDictionary.Item 取得或設定具有指定之索引鍵的值。 (繼承自 Dictionary<String, String>)。
明確介面實作私用屬性 IDictionary<TKey, TValue>.Keys 取得 ICollection<T>,包含 IDictionary<TKey, TValue> 的索引鍵。 (繼承自 Dictionary<String, String>)。
明確介面實作私用屬性 IDictionary.Keys 取得 ICollection,包含 IDictionary 的索引鍵。 (繼承自 Dictionary<String, String>)。
明確介面實作私用方法 ICollection<KeyValuePair<TKey, TValue>>.Remove 從字典移除索引鍵和值。 (繼承自 Dictionary<String, String>)。
明確介面實作私用方法 IDictionary.Remove 將具有指定索引鍵的項目從 IDictionary 移除。 (繼承自 Dictionary<String, String>)。
明確介面實作私用屬性 ICollection.SyncRoot 取得可用來同步存取 ICollection 的物件。 (繼承自 Dictionary<String, String>)。
明確介面實作私用屬性 IDictionary<TKey, TValue>.Values 取得 ICollection<T>,包含 IDictionary<TKey, TValue> 中的值。 (繼承自 Dictionary<String, String>)。
明確介面實作私用屬性 IDictionary.Values 取得 ICollection,包含 IDictionary 中的值。 (繼承自 Dictionary<String, String>)。

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.TeamFoundation.Deployment.Workflow.Activities 命名空間