EndpointAddressMessageFilter 构造函数

定义

初始化 EndpointAddressMessageFilter 类的新实例。

重载

EndpointAddressMessageFilter(EndpointAddress)

利用用以测试消息的指定地址初始化 EndpointAddressMessageFilter 类的新实例。

EndpointAddressMessageFilter(EndpointAddress, Boolean)

初始化 EndpointAddressMessageFilter 类的新实例。

EndpointAddressMessageFilter(EndpointAddress)

利用用以测试消息的指定地址初始化 EndpointAddressMessageFilter 类的新实例。

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)

参数

address
EndpointAddress

用以测试消息的 EndpointAddress

例外

addressnull

适用于

EndpointAddressMessageFilter(EndpointAddress, Boolean)

初始化 EndpointAddressMessageFilter 类的新实例。

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)

参数

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 都解析为同一终结点。

适用于