共用方式為


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

適用於