Redigera

Dela via


MessageFilterTable<TFilterData>.GetPriority(MessageFilter) Method

Definition

Returns the priority of a given filter in the table.

public:
 int GetPriority(System::ServiceModel::Dispatcher::MessageFilter ^ filter);
public int GetPriority (System.ServiceModel.Dispatcher.MessageFilter filter);
member this.GetPriority : System.ServiceModel.Dispatcher.MessageFilter -> int
Public Function GetPriority (filter As MessageFilter) As Integer

Parameters

filter
MessageFilter

The MessageFilter contained in the filter table created.

Returns

The priority of the filter.

Exceptions

The specified filter does not exist in the filter table.

Remarks

The priority is an integer value used to group filters into priority buckets and order their processing. The larger the integer assigned to a filter type, the higher its priority for processing. All the filter tables in a priority bucket are evaluated together. Lower priority buckets are only evaluated if higher priority buckets do not provide any matches.

Applies to