Export (0) Print
Expand All

MessageFilterTable(Of TFilterData) Class

Provides the generic implementation of a filter table.

Namespace:  System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

'Declaration
<DataContractAttribute> _
Public Class MessageFilterTable(Of TFilterData) _
	Implements IMessageFilterTable(Of TFilterData), IDictionary(Of MessageFilter, TFilterData),  _
	ICollection(Of KeyValuePair(Of MessageFilter, TFilterData)), IEnumerable(Of KeyValuePair(Of MessageFilter, TFilterData)),  _
	IEnumerable
'Usage
Dim instance As MessageFilterTable(Of TFilterData)

Type Parameters

TFilterData

The type of the FilterData associated with the filter.

A MessageFilterTable(Of TFilterData) accepts filters of any type. It groups them internally into tables that contain all the filters of a given type. When a filter is added, it is put into an internal filter table, if one already exists, which contains filters of its type. If no such table exists, CreateFilterTable is called to allocate a new filter table of the appropriate type. Its default operation is to call CreateFilterTable(Of FilterData).

This default behavior can be overridden to explicitly specify the type of filter table associated with a type of filter. The first time a filter type is added to the table, the filter table type created is permanently associated with the filter type.

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. A filter table assigns a default priority that can be set to filters being added.

System.Object
  System.ServiceModel.Dispatcher.MessageFilterTable(Of TFilterData)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2014 Microsoft