Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Remove Method (KeyValuePair(MessageQuery, TItem))
Collapse the table of content
Expand the table of content

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

.NET Framework 4.6 and 4.5

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

Implements

ICollection<T>.Remove(T)

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft