MessageProperties.ICollection(Of KeyValuePair(Of String, Object)).Remove Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Removes the element with the specified name from the MessageProperties. This method cannot be inherited.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
'Declaration Private Function Remove ( _ pair As KeyValuePair(Of String, Object) _ ) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Remove
Parameters
- pair
- Type: System.Collections.Generic.KeyValuePair(Of String, Object)
A key/value pair that contains the name and value of the element to be removed.
Return Value
Type: System.Booleantrue if the MessageProperties contains an element with the specified name and value in the pair parameter and can be removed; otherwise, false.
Implements
ICollection(Of T).Remove(T)
Show: