Επεξεργασία

Κοινή χρήση μέσω


XPathMessageFilterTable<TFilterData>.Remove Method

Definition

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

Overloads

Remove(KeyValuePair<MessageFilter,TFilterData>)

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

Remove(MessageFilter)

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

Remove(XPathMessageFilter)

Removes an XPathMessageFilter and its associated filter data from the filter table.

Remove(KeyValuePair<MessageFilter,TFilterData>)

Removes a filter and its associated filter data 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

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.

Applies to

Remove(MessageFilter)

Removes a filter and its associated filter data 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; otherwise, false.

Implements

Exceptions

filter is null.

Applies to

Remove(XPathMessageFilter)

Removes an XPathMessageFilter and its associated filter data from the filter table.

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

Parameters

filter
XPathMessageFilter

The XPathMessageFilter to remove.

Returns

true if the XPathMessageFilter was found and removed; otherwise, false.

Exceptions

filter is null.

Remarks

This method does not throw an exception if the specified filter does not exist in the filter table.

Applies to