MessageProperties.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains Method
Determines whether the MessageProperties contains a specific name. This method cannot be inherited.
Namespace: System.ServiceModel.Channels
Assembly: System.ServiceModel (in system.servicemodel.dll)
'Declaration
Private Function System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains ( _
pair As KeyValuePair(Of String, Object) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Contains
'Usage
Dim instance As MessageProperties
Dim pair As KeyValuePair(Of String, Object)
Dim returnValue As Boolean
returnValue = CType(instance, ICollection(Of KeyValuePair(Of String, Object))).Contains(pair)
C#
bool ICollection<KeyValuePair<string,Object>>.Contains (
KeyValuePair<string,Object> pair
)
private:
virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains (
KeyValuePair<String^, Object^> pair
) sealed = ICollection<KeyValuePair<String^, Object^>>::Contains
Not applicable.
- pair
A key value pair that contains the name and value of the element to locate in the MessageProperties.
true if the MessageProperties contains an element with the name and value in the specified pair; otherwise, false.
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Supported in: 3.0
MessageProperties Class
MessageProperties Members
System.ServiceModel.Channels Namespace