DataCollection<TKey,TValue>.Contains DataCollection<TKey,TValue>.Contains DataCollection<TKey,TValue>.Contains DataCollection<TKey,TValue>.Contains Method

Definition

Overloads

Contains(KeyValuePair<TKey,TValue>) Contains(KeyValuePair<TKey,TValue>) Contains(KeyValuePair<TKey,TValue>) Contains(KeyValuePair<TKey,TValue>)

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

Contains(TKey) Contains(TKey) Contains(TKey) Contains(TKey)

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

Contains(KeyValuePair<TKey,TValue>) Contains(KeyValuePair<TKey,TValue>) Contains(KeyValuePair<TKey,TValue>) 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>

Type: KeyValuePair<TKey, TValue>. The key value pair to locate in the collection.

Returns

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

Contains(TKey) Contains(TKey) Contains(TKey) 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 TKey TKey TKey

Type: TKey. The key to locate in the collection.

Returns

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

Applies to