Partager via


ReadOnlyDictionary<TKey, TValue>.ICollection<KeyValuePair<TKey, TValue>>.Contains Method

Checks whether the specified item is located in this dictionary.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Déclaration
Private Function Contains ( _
    item As KeyValuePair(Of TKey, TValue) _
) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Contains
bool ICollection<KeyValuePair<TKey, TValue>>.Contains(
    KeyValuePair<TKey, TValue> item
)
private:
virtual bool Contains(
    KeyValuePair<TKey, TValue> item
) sealed = ICollection<KeyValuePair<TKey, TValue>>::Contains
private abstract Contains : 
        item:KeyValuePair<'TKey, 'TValue> -> bool 
private override Contains : 
        item:KeyValuePair<'TKey, 'TValue> -> bool 
JScript does not support explicit interface implementations.

Parameters

Return Value

Type: System.Boolean
True if the specified item is located in this dictionary; otherwise, false.

Implements

ICollection<T>.Contains(T)

.NET Framework Security

See Also

Reference

ReadOnlyDictionary<TKey, TValue> Class

Microsoft.TeamFoundation.Client Namespace