Lenguaje

ImmutableDictionary<TKey,TValue>.Contains Método

Definición

Determina si este diccionario inmutable contiene el par clave-valor especificado.

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

Parámetros

pair
KeyValuePair<TKey,TValue>

Par clave-valor que se va a buscar.

Devoluciones

true si el par clave-valor especificado se encuentra en el diccionario; de lo contrario, false.

Implementaciones

Se aplica a