共用方式為


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 全都會解析為相同的端點。

適用於