Share via


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

Definition

Bestimmt, ob die MessageProperties einen bestimmten Namen enthalten.

 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

Parameter

pair
KeyValuePair<String,Object>

Ein Attribut-Wert-Paar, das den Namen und den Wert des in den MessageProperties zu suchenden Elements enthält.

Gibt zurück

true, wenn die MessageProperties ein Element mit dem im pair angegebenen Namen und Wert enthalten, andernfalls false.

Implementiert

Gilt für: