Editare

Partajați prin


PrefixEndpointAddressMessageFilter Constructors

Definition

Initializes a new instance of the PrefixEndpointAddressMessageFilter class.

Overloads

PrefixEndpointAddressMessageFilter(EndpointAddress)

Initializes a new instance of the PrefixEndpointAddressMessageFilter class.

PrefixEndpointAddressMessageFilter(EndpointAddress, Boolean)

Initializes a new instance of the PrefixEndpointAddressMessageFilter class.

PrefixEndpointAddressMessageFilter(EndpointAddress)

Initializes a new instance of the PrefixEndpointAddressMessageFilter class.

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

Parameters

address
EndpointAddress

The EndpointAddress against which messages are tested.

Exceptions

address is null.

Applies to

PrefixEndpointAddressMessageFilter(EndpointAddress, Boolean)

Initializes a new instance of the PrefixEndpointAddressMessageFilter class.

public:
 PrefixEndpointAddressMessageFilter(System::ServiceModel::EndpointAddress ^ address, bool includeHostNameInComparison);
public PrefixEndpointAddressMessageFilter (System.ServiceModel.EndpointAddress address, bool includeHostNameInComparison);
new System.ServiceModel.Dispatcher.PrefixEndpointAddressMessageFilter : System.ServiceModel.EndpointAddress * bool -> System.ServiceModel.Dispatcher.PrefixEndpointAddressMessageFilter
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