MessageQueryTable<TItem>.Remove Method  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the occurrence of a specific object from the collection.
Overloads
| Remove(KeyValuePair<MessageQuery,TItem>) | Removes the first occurrence of the specified object from the collection. | 
| Remove(MessageQuery) | Removes the item associated with the specified key from the collection. | 
Remove(KeyValuePair<MessageQuery,TItem>)
Removes the first occurrence of the specified object from the collection.
public:
 virtual bool Remove(System::Collections::Generic::KeyValuePair<System::ServiceModel::Dispatcher::MessageQuery ^, TItem> item);public bool Remove(System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery,TItem> item);abstract member Remove : System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery, 'Item> -> bool
override this.Remove : System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageQuery, 'Item> -> boolPublic Function Remove (item As KeyValuePair(Of MessageQuery, TItem)) As BooleanParameters
- item
- KeyValuePair<MessageQuery,TItem>
The KeyValuePair<TKey,TValue> object to remove from the collection.
Returns
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
Applies to
Remove(MessageQuery)
Removes the item associated with the specified key from the collection.
public:
 virtual bool Remove(System::ServiceModel::Dispatcher::MessageQuery ^ key);public bool Remove(System.ServiceModel.Dispatcher.MessageQuery key);abstract member Remove : System.ServiceModel.Dispatcher.MessageQuery -> bool
override this.Remove : System.ServiceModel.Dispatcher.MessageQuery -> boolPublic Function Remove (key As MessageQuery) As BooleanParameters
- key
- MessageQuery
The key of the element to remove.
Returns
Boolean
true if the item was found and removed; false if the item was not found.