Share via


DataCollection<TKey,TValue>.Contains Method

Definition

Overloads

Contains(KeyValuePair<TKey,TValue>)

Determines whether the DataCollection<TKey,TValue> contains a specific value.

Contains(TKey)

Determines whether the DataCollection<TKey,TValue> contains a specific value.

Contains(KeyValuePair<TKey,TValue>)

Determines whether the DataCollection<TKey,TValue> contains a specific value.

public:
 bool Contains(System::Collections::Generic::KeyValuePair<TKey, TValue> key);
public bool Contains (System.Collections.Generic.KeyValuePair<TKey,TValue> key);
member this.Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
Public Function Contains (key As KeyValuePair(Of TKey, TValue)) As Boolean

Parameters

key
KeyValuePair<TKey,TValue>

The key value pair to locate in the collection.

Returns

true if item is found in the DataCollection<TKey,TValue>; otherwise, false.

Applies to

Contains(TKey)

Determines whether the DataCollection<TKey,TValue> contains a specific value.

public:
 bool Contains(TKey key);
public bool Contains (TKey key);
member this.Contains : 'Key -> bool
Public Function Contains (key As TKey) As Boolean

Parameters

key
TKey

The key to locate in the collection.

Returns

true if item is found in the DataCollection<TKey,TValue>; otherwise, false.

Applies to