Export (0) Print
Expand All
Expand Minimize

AddressFilterMode Enumeration

Specifies the type of match semantics used by the dispatcher to route incoming messages to the correct endpoint.

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

public enum AddressFilterMode

Member nameDescription
ExactIndicates a filter that does an exact match on the address of an incoming message.
PrefixIndicates a filter does the longest prefix matches on the address of an incoming message.
AnyIndicates a filter that matches on any address of an incoming message.

Using this value turns off the address filter check. Any message, no matter what its WS-Adressing:To identity is accepted.

The value of the AddressFilterMode enumeration is set on the AddressFilterMode property.

The longest prefix match criterion specified by Prefix requires that the destination address be matched by the largest number of leading address bits in the filter. The default value is Exact.


    [ServiceBehavior(AddressFilterMode = AddressFilterMode.Prefix)]
    public class CalculatorService : ICalculator
    {
        public double Add(double n1, double n2)
        {
            return n1 + n2;
        }

        public double Subtract(double n1, double n2)
        {
            return n1 - n2;
        }

        public double Multiply(double n1, double n2)
        {
            return n1 * n2;
        }

        public double Divide(double n1, double n2)
        {
            return n1 / n2;
        }
    }



.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

ADD
Show:
© 2014 Microsoft