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

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)


Private Function Contains ( _
    pair As KeyValuePair(Of String, Object) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Contains
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)
bool ICollection<KeyValuePair<string, Object>>.Contains(
    KeyValuePair<string, Object> pair
virtual bool Contains(
    KeyValuePair<String^, Object^> pair
) sealed = ICollection<KeyValuePair<String^, Object^>>::Contains
J# supports the use of explicit interface implementations, but not the declaration of new ones.
JScript does not support explicit interface implementations.


Return Value

Type: System.Boolean




Windows Vista, Windows XP SP2, Windows Server 2003, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.5, 3.0 SP1, 3.0

.NET Compact Framework

Supported in: 3.5

See Also


MessageProperties Class

MessageProperties Members

System.ServiceModel.Channels Namespace