Editar

Partilhar via


MessageFilterTable<TFilterData>.Remove Method

Definition

Removes a filter and its associated filter data from the table.

Overloads

Remove(KeyValuePair<MessageFilter,TFilterData>)

Removes a specified filter/FilterData pair from the filter table.

Remove(MessageFilter)

Removes a filter and its associated FilterData from the filter table.

Remove(KeyValuePair<MessageFilter,TFilterData>)

Removes a specified filter/FilterData pair from the filter table.

public:
 virtual bool Remove(System::Collections::Generic::KeyValuePair<System::ServiceModel::Dispatcher::MessageFilter ^, TFilterData> item);
public bool Remove (System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageFilter,TFilterData> item);
abstract member Remove : System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageFilter, 'FilterData> -> bool
override this.Remove : System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageFilter, 'FilterData> -> bool
Public Function Remove (item As KeyValuePair(Of MessageFilter, TFilterData)) As Boolean

Parameters

item
KeyValuePair<MessageFilter,TFilterData>

The KeyValuePair<TKey,TValue> <Filter, FilterData> to remove from the table.

Returns

true if the filter/FilterData pair was found and removed; false if it was not found.

Implements

Exceptions

filter is null.

Remarks

If the filter key of the item is present but is associated with data that differs from the FilterData, the method fails to remove the filter and returns false.

This method implements ICollection<T>.Remove.

Applies to

Remove(MessageFilter)

Removes a filter and its associated FilterData from the filter table.

public:
 virtual bool Remove(System::ServiceModel::Dispatcher::MessageFilter ^ filter);
public bool Remove (System.ServiceModel.Dispatcher.MessageFilter filter);
abstract member Remove : System.ServiceModel.Dispatcher.MessageFilter -> bool
override this.Remove : System.ServiceModel.Dispatcher.MessageFilter -> bool
Public Function Remove (filter As MessageFilter) As Boolean

Parameters

filter
MessageFilter

The MessageFilter to remove.

Returns

true if the filter was found and removed; false if it was not found.

Implements

Exceptions

filter is null.

Remarks

This method implements ICollection<T>.Remove.

Applies to