Share via


<filter>

Defines a routing filter, which determines the type of Windows Communication Foundation (WCF) MessageFilter to be used when evaluating incoming messages, as well any supporting data or parameters required by the filter.

Schema Hierarchy

<system.serviceModel>
  <routing>
    <filters> of <routing>
      <filter>

Syntax

   <routing>      <filters>        <filter customType=”String”                filterData=”String”                filterType="Action/Address/AddressPrefix/And/Custom/Endpoint/MatchAll/XPath"                 name="String" />      </filters></routing>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description

customType 

A string containing the fully qualified type name of the custom type to be used as a filter. If filterType is set to custom, this attribute contains the fully qualified type name of the class to create.  filterData may also contain values to be used during evaluation of the custom type filter.

filterData

A string containing the filter data. For more information on how to specify this attribute, see FilterData.

filterType

A string containing the filter type. This attribute is of FilterType type. For more information on how this works with the filterData attribute, see FilterData.

name

A string containing the unique name of this filter element.

Child Elements

None.

Parent Elements

Element Description

<routing>

A configuration section for defining a set of routing filters, which determine the type of Windows Communication Foundation (WCF) MessageFilter to be used when evaluating incoming messages.

See Also

Reference

System.ServiceModel.Routing.Configuration.FilterElement
FilterData
FilterType