편집

다음을 통해 공유


MessageQueryTable<TItem>.Remove Method

Definition

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> -> bool
Public Function Remove (item As KeyValuePair(Of MessageQuery, TItem)) As Boolean

Parameters

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 -> bool
Public Function Remove (key As MessageQuery) As Boolean

Parameters

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.

Implements

Applies to