Share via


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

Definizione

Consente di stabilire se la classe MessageProperties contiene un nome specifico.

 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

Parametri

pair
KeyValuePair<String,Object>

Coppia chiave/valore contenente il nome e il valore dell'elemento da individuare nella classe MessageProperties.

Restituisce

true se la classe MessageProperties contiene un elemento con il nome e il valore inclusi nel parametro pair specificato. In caso contrario, false.

Implementazioni

Si applica a