Edit

Share via


EndpointAddressMessageFilter Constructors

Definition

Initializes a new instance of the EndpointAddressMessageFilter class.

Overloads

EndpointAddressMessageFilter(EndpointAddress)

Initializes a new instance of the EndpointAddressMessageFilter class with a specified address against which to test a message.

EndpointAddressMessageFilter(EndpointAddress, Boolean)

Initializes a new instance of the EndpointAddressMessageFilter class.

EndpointAddressMessageFilter(EndpointAddress)

Initializes a new instance of the EndpointAddressMessageFilter class with a specified address against which to test a message.

public:
 EndpointAddressMessageFilter(System::ServiceModel::EndpointAddress ^ address);
public EndpointAddressMessageFilter (System.ServiceModel.EndpointAddress address);
new System.ServiceModel.Dispatcher.EndpointAddressMessageFilter : System.ServiceModel.EndpointAddress -> System.ServiceModel.Dispatcher.EndpointAddressMessageFilter
Public Sub New (address As EndpointAddress)

Parameters

address
EndpointAddress

The EndpointAddress against which messages are tested.

Exceptions

address is null.

Applies to

EndpointAddressMessageFilter(EndpointAddress, Boolean)

Initializes a new instance of the EndpointAddressMessageFilter class.

public:
 EndpointAddressMessageFilter(System::ServiceModel::EndpointAddress ^ address, bool includeHostNameInComparison);
public EndpointAddressMessageFilter (System.ServiceModel.EndpointAddress address, bool includeHostNameInComparison);
new System.ServiceModel.Dispatcher.EndpointAddressMessageFilter : System.ServiceModel.EndpointAddress * bool -> System.ServiceModel.Dispatcher.EndpointAddressMessageFilter
Public Sub New (address As EndpointAddress, includeHostNameInComparison As Boolean)

Parameters

address
EndpointAddress

The EndpointAddress against which messages are tested.

includeHostNameInComparison
Boolean

true if the host name is included in the endpoint address comparison; otherwise, false.

Exceptions

address is null.

Remarks

If you have a web service installed on your local machine, there are many equivalent ways to reference it, including the following:

  • http://localhost/foo.svc
  • http://192.168.1.100/foo.svc
  • http://[my-machine-name]/foo.svc
  • http://[my-machine-name].[my-company].com/foo.svc

If the value of the includeHostNameInComparison parameter is false, the above URIs all resolve to the same endpoint.

Applies to