MessageProperties.ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>) MessageProperties.ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>) MessageProperties.ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>) Method

Definition

Determines whether the MessageProperties contains a specific name.

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,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);
Function Contains (pair As KeyValuePair(Of String, Object)) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Contains

Parameters

pair
KeyValuePair<String,Object>

A key/value pair that contains the name and value of the element to locate in the MessageProperties.

Returns

true if the MessageProperties contains an element with the name and value in the specified pair; otherwise, false.

Implements

Applies to