Udostępnij przez


MessageProperties.ICollection<KeyValuePair<String,Object>>.Contains Metoda

Definicja

Określa, czy element MessageProperties zawiera określoną nazwę.

 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

Parametry

pair
KeyValuePair<String,Object>

Para klucz/wartość zawierająca nazwę i wartość elementu do zlokalizowania w elemecie MessageProperties.

Zwraca

truejeśli element MessageProperties zawiera element o nazwie i wartości w określonym pair; w przeciwnym razie . false

Implementuje

Dotyczy