Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

 

Determines whether the MessageProperties contains a specific name.

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

private:
virtual bool Contains(
	KeyValuePair<String^, Object^> pair
) sealed = ICollection<KeyValuePair<String^, Object^>>::Contains

Parameters

pair
Type: System.Collections.Generic::KeyValuePair<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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft