ImmutableDictionary.Contains<TKey,TValue>(IImmutableDictionary<TKey,TValue>, TKey, TValue) Método

Definición

Determina si el diccionario inmutable especificado contiene el par de clave-valor especificado.Determines whether the specified immutable dictionary contains the specified key/value pair.

public:
generic <typename TKey, typename TValue>
[System::Runtime::CompilerServices::Extension]
 static bool Contains(System::Collections::Immutable::IImmutableDictionary<TKey, TValue> ^ map, TKey key, TValue value);
public static bool Contains<TKey,TValue> (this System.Collections.Immutable.IImmutableDictionary<TKey,TValue> map, TKey key, TValue value);
static member Contains : System.Collections.Immutable.IImmutableDictionary<'Key, 'Value> * 'Key * 'Value -> bool
<Extension()>
Public Function Contains(Of TKey, TValue) (map As IImmutableDictionary(Of TKey, TValue), key As TKey, value As TValue) As Boolean

Parámetros de tipo

TKey

Tipo de las claves del diccionario inmutable.The type of the keys in the immutable dictionary.

TValue

Tipo de los valores del diccionario inmutable.The type of the values in the immutable dictionary.

Parámetros

map
IImmutableDictionary<TKey,TValue>

Diccionario inmutable para buscar.The immutable dictionary to search.

key
TKey

Clave que se va a buscar en el diccionario inmutable.The key to locate in the immutable dictionary.

value
TValue

Valor para buscar en la clave especificada, si se encuentra la clave.The value to locate on the specified key, if the key is found.

Devoluciones

true si esta asignación contiene el par clave-valor especificado; de lo contrario, false.true if this map contains the specified key/value pair; otherwise, false.

Se aplica a