ActivityTagsCollection.Remove 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Remove(KeyValuePair<String,Object>) |
從集合中移除特定項目的第一個符合項目。 |
Remove(String) |
從集合移除具有指定之機碼的標籤。 |
Remove(KeyValuePair<String,Object>)
從集合中移除特定項目的第一個符合項目。
public:
virtual bool Remove(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> item);
public bool Remove (System.Collections.Generic.KeyValuePair<string,object?> item);
abstract member Remove : System.Collections.Generic.KeyValuePair<string, obj> -> bool
override this.Remove : System.Collections.Generic.KeyValuePair<string, obj> -> bool
Public Function Remove (item As KeyValuePair(Of String, Object)) As Boolean
參數
- item
- KeyValuePair<String,Object>
要移除的標籤機碼值組。
傳回
如果從集合中成功移除項目,則為 true
,否則為 false
。 如果在原始集合中找不到項目,則這個方法也會傳回 false
。
實作
適用於
Remove(String)
從集合移除具有指定之機碼的標籤。
public:
virtual bool Remove(System::String ^ key);
public bool Remove (string key);
abstract member Remove : string -> bool
override this.Remove : string -> bool
Public Function Remove (key As String) As Boolean
參數
- key
- String
標籤索引鍵。
傳回
如果項目存在且已移除,則為 true
。 否則為 false
。
實作
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應