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)


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
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
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.


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


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


MessageProperties Class
MessageProperties Members
System.ServiceModel.Channels Namespace