MessageQueryTable<TItem>.Remove Method (KeyValuePair<MessageQuery, TItem>)

.NET Framework (current version)
 

Removes the first occurrence of the specified object from the collection.

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

public bool Remove(
	KeyValuePair<MessageQuery, TItem> item
)

Parameters

item
Type: System.Collections.Generic.KeyValuePair<MessageQuery, TItem>

The KeyValuePair<TKey, TValue> object to remove from the collection.

Return Value

Type: System.Boolean

Boolean

true if the item was successfully removed from the collection; otherwise, false. This method also returns false if the item is not found in the collection.

.NET Framework
Available since 4.0
Return to top
Show: