MessageProperties.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Remove Method
Removes the element with the specified name from the MessageProperties. This method cannot be inherited.
Namespace: System.ServiceModel.Channels
Assembly: System.ServiceModel (in system.servicemodel.dll)
'Declaration
Private Function System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Remove ( _
pair As KeyValuePair(Of String, Object) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Remove
'Usage
Dim instance As MessageProperties
Dim pair As KeyValuePair(Of String, Object)
Dim returnValue As Boolean
returnValue = CType(instance, ICollection(Of KeyValuePair(Of String, Object))).Remove(pair)
bool ICollection<KeyValuePair<string,Object>>.Remove (
KeyValuePair<string,Object> pair
)
private:
virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Remove (
KeyValuePair<String^, Object^> pair
) sealed = ICollection<KeyValuePair<String^, Object^>>::Remove
Not applicable.
- pair
A key value pair that contains the name and value of the element to be removed.
true if the MessageProperties contains an element with the specified name and value in the pairparameter and can be removed; otherwise, false.
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Supported in: 3.0
MessageProperties Class
MessageProperties Members
System.ServiceModel.Channels Namespace