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

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Determines whether the MessageProperties contains a specific name. This method cannot be inherited.

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

Syntax

Private Function Contains ( _
    pair As KeyValuePair(Of String, Object) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Contains
bool ICollection<KeyValuePair<string, Object>>.Contains(
    KeyValuePair<string, Object> pair
)

Parameters

Return Value

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

Implements

ICollection<(Of <(T>)>)..::.Contains(T)

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

MessageProperties Class

System.ServiceModel.Channels Namespace