ICollection(KeyValuePair(String, Object)).Contains Method

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)

'Declaration
Private Function Contains ( _
	pair As KeyValuePair(Of String, Object) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Contains

Parameters

pair
Type: System.Collections.Generic.KeyValuePair(Of String, Object)
A key/value pair that contains the name and value of the element to locate in the MessageProperties.

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)

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft