Share via


MessageProperties.ICollection<KeyValuePair<String,Object>>.Contains Método

Definición

Determina si MessageProperties contiene un nombre específico.

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> pair) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>::Contains;
bool ICollection<KeyValuePair<string,object>>.Contains (System.Collections.Generic.KeyValuePair<string,object> pair);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
Function Contains (pair As KeyValuePair(Of String, Object)) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Contains

Parámetros

pair
KeyValuePair<String,Object>

Un par clave-valor que contiene el nombre y valor del elemento que se va a buscar en MessageProperties.

Devoluciones

true si MessageProperties contiene un elemento con el nombre y valor en el pair especificado; de lo contrario, false.

Implementaciones

Se aplica a