ActivityTagsCollection.Contains(KeyValuePair<String,Object>) 方法

定义

确定 ICollection<T> 是否包含特定值。Determines whether the ICollection<T> contains a specific value.

public:
 virtual bool Contains(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> item);
public bool Contains (System.Collections.Generic.KeyValuePair<string,object?> item);
abstract member Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
override this.Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
Public Function Contains (item As KeyValuePair(Of String, Object)) As Boolean

参数

item
KeyValuePair<String,Object>

要在 ICollection<T> 中定位的对象。The object to locate in the ICollection<T>.

返回

Boolean

如果在 true 中找到 item,则为 ICollection<T>;否则为 falsetrue if item is found in the ICollection<T>; otherwise, false.

实现

适用于