EndpointAddressMessageFilter 构造函数
定义
初始化 EndpointAddressMessageFilter 类的新实例。Initializes a new instance of the EndpointAddressMessageFilter class.
重载
| EndpointAddressMessageFilter(EndpointAddress) |
利用用以测试消息的指定地址初始化 EndpointAddressMessageFilter 类的新实例。Initializes a new instance of the EndpointAddressMessageFilter class with a specified address against which to test a message. |
| EndpointAddressMessageFilter(EndpointAddress, Boolean) |
初始化 EndpointAddressMessageFilter 类的新实例。Initializes a new instance of the EndpointAddressMessageFilter class. |
EndpointAddressMessageFilter(EndpointAddress)
利用用以测试消息的指定地址初始化 EndpointAddressMessageFilter 类的新实例。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)
参数
- address
- EndpointAddress
用以测试消息的 EndpointAddress。The EndpointAddress against which messages are tested.
例外
address 为 null。address is null.
适用于
EndpointAddressMessageFilter(EndpointAddress, Boolean)
初始化 EndpointAddressMessageFilter 类的新实例。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)
参数
- address
- EndpointAddress
用以测试消息的 EndpointAddress。The EndpointAddress against which messages are tested.
- includeHostNameInComparison
- Boolean
如果主机名称包含在终结点地址比较中,则为 true;否则为 false。true if the host name is included in the endpoint address comparison; otherwise, false.
例外
address 为 null。address is null.
注解
如果在本地计算机上安装了 Web 服务,则有多种等效方法引用该服务,其中包括: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.svchttp://192.168.1.100/foo.svchttp://[my-machine-name]/foo.svchttp://[my-machine-name].[my-company].com/foo.svc
如果 includeHostNameInComparison 参数的值为 false,则以上 URI 都解析为同一终结点。If the value of the includeHostNameInComparison parameter is false, the above URIs all resolve to the same endpoint.