PrefixEndpointAddressMessageFilter 构造函数

定义

初始化 PrefixEndpointAddressMessageFilter 类的新实例。

重载

PrefixEndpointAddressMessageFilter(EndpointAddress)

初始化 PrefixEndpointAddressMessageFilter 类的新实例。

PrefixEndpointAddressMessageFilter(EndpointAddress, Boolean)

初始化 PrefixEndpointAddressMessageFilter 类的新实例。

PrefixEndpointAddressMessageFilter(EndpointAddress)

初始化 PrefixEndpointAddressMessageFilter 类的新实例。

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)

参数

address
EndpointAddress

用以测试消息的 EndpointAddress

例外

addressnull

适用于

PrefixEndpointAddressMessageFilter(EndpointAddress, Boolean)

初始化 PrefixEndpointAddressMessageFilter 类的新实例。

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)

参数

address
EndpointAddress

用以测试消息的 EndpointAddress

includeHostNameInComparison
Boolean

如果主机名称包含在终结点地址比较中,则为 true;否则为 false

例外

addressnull

注解

如果在本地计算机上安装了 Web 服务,则有多种等效方法引用该服务,其中包括:

  • 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

如果 includeHostNameInComparison 参数的值为 false,则以上 URI 都解析为同一终结点。

适用于