MessageProperties.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Add Method 

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)

Syntax

'Declaration
Private Sub System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Add ( _
    pair As KeyValuePair(Of String, Object) _
) Implements ICollection(Of KeyValuePair(Of String, Object)).Add
'Usage
Dim instance As MessageProperties
Dim pair As KeyValuePair(Of String, Object)

CType(instance, ICollection(Of KeyValuePair(Of String, Object))).Add(pair)
void ICollection<KeyValuePair<string,Object>>.Add (
    KeyValuePair<string,Object> pair
)
private:
virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Add (
    KeyValuePair<String^, Object^> pair
) sealed = ICollection<KeyValuePair<String^, Object^>>::Add
Not applicable.

Parameters

  • pair
    A key value pair that contains the name and value of the element to add.

Platforms

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

MessageProperties Class
MessageProperties Members
System.ServiceModel.Channels Namespace