Add Method

MessageProperties.Add Method

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

Adds an element with the specified name and property into the MessageProperties. This method cannot be inherited.

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

public void Add(
	string name,
	Object property
)

Parameters

name
Type: System.String
The name of the element to add.
property
Type: System.Object
The value of the element to add.

Implements

IDictionary<TKey, TValue>.Add(TKey, TValue)

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft