Bagikan melalui


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

Definisi

Menentukan apakah MessageProperties berisi nama tertentu.

 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>

Pasangan kunci/nilai yang berisi nama dan nilai elemen untuk ditemukan di MessageProperties.

Mengembalikan

trueMessageProperties jika berisi elemen dengan nama dan nilai dalam yang ditentukan pair; jika tidak, false.

Penerapan

Berlaku untuk