ActivityTagsCollection.Remove 方法

定义

重载

Remove(KeyValuePair<String,Object>)

从集合中移除特定项的第一个匹配项。

Remove(String)

从集合中删除具有指定键的 标记。

Remove(KeyValuePair<String,Object>)

Source:
ActivityTagsCollection.cs
Source:
ActivityTagsCollection.cs
Source:
ActivityTagsCollection.cs

从集合中移除特定项的第一个匹配项。

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)

Source:
ActivityTagsCollection.cs
Source:
ActivityTagsCollection.cs
Source:
ActivityTagsCollection.cs

从集合中删除具有指定键的 标记。

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

实现

适用于