ActivityTagsCollection.ContainsKey(String) 方法

定義

判斷集合是否包含具有指定之索引鍵的項目。Determines whether the collection contains an element with the specified key.

public:
 virtual bool ContainsKey(System::String ^ key);
public bool ContainsKey (string key);
abstract member ContainsKey : string -> bool
override this.ContainsKey : string -> bool
Public Function ContainsKey (key As String) As Boolean

參數

key
String

要在 IDictionary<TKey,TValue> 中尋找的索引鍵。The key to locate in the IDictionary<TKey,TValue>.

傳回

Boolean

如果集合包含具有該機碼的標籤,則為 truetrue if the collection contains tag with that key. 否則為 falsefalse otherwise.

實作

適用於