ServiceClient 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ServiceClient 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| ServiceClient() |
初始化一個以預設值的新類別實例 ServiceClient 。 |
| ServiceClient(String) |
初始化一個以指定端點配置名稱的新 ServiceClient 類別實例。 |
| ServiceClient(Binding, EndpointAddress) |
初始化一個擁有指定綁定與遠端位址的類別新實例 ServiceClient 。 |
| ServiceClient(String, EndpointAddress) |
初始化一個擁有指定端點設定名稱與遠端位址的類別新實例 ServiceClient 。 |
| ServiceClient(String, String) |
初始化一個以指定端點配置名稱與遠端位址為字串的新類別實例 ServiceClient 。 |
ServiceClient()
初始化一個以預設值的新類別實例 ServiceClient 。
public:
ServiceClient();
public ServiceClient();
Public Sub New ()
適用於
ServiceClient(String)
初始化一個以指定端點配置名稱的新 ServiceClient 類別實例。
public:
ServiceClient(System::String ^ endpointConfigurationName);
public ServiceClient(string endpointConfigurationName);
new Microsoft.MasterDataServices.ServiceClient : string -> Microsoft.MasterDataServices.ServiceClient
Public Sub New (endpointConfigurationName As String)
參數
- endpointConfigurationName
- String
端點配置的名稱。
適用於
ServiceClient(Binding, EndpointAddress)
初始化一個擁有指定綁定與遠端位址的類別新實例 ServiceClient 。
public:
ServiceClient(System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ remoteAddress);
public ServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress);
new Microsoft.MasterDataServices.ServiceClient : System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> Microsoft.MasterDataServices.ServiceClient
Public Sub New (binding As Binding, remoteAddress As EndpointAddress)
參數
- binding
- Binding
服務客戶端用來與主資料服務(Master Data Services)通訊的綁定。
- remoteAddress
- EndpointAddress
服務客戶端用來與主資料服務通訊的遠端位址。
適用於
ServiceClient(String, EndpointAddress)
初始化一個擁有指定端點設定名稱與遠端位址的類別新實例 ServiceClient 。
public:
ServiceClient(System::String ^ endpointConfigurationName, System::ServiceModel::EndpointAddress ^ remoteAddress);
public ServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress);
new Microsoft.MasterDataServices.ServiceClient : string * System.ServiceModel.EndpointAddress -> Microsoft.MasterDataServices.ServiceClient
Public Sub New (endpointConfigurationName As String, remoteAddress As EndpointAddress)
參數
- endpointConfigurationName
- String
端點配置的名稱。
- remoteAddress
- EndpointAddress
服務客戶端用來與主資料服務通訊的遠端位址。
適用於
ServiceClient(String, String)
初始化一個以指定端點配置名稱與遠端位址為字串的新類別實例 ServiceClient 。
public:
ServiceClient(System::String ^ endpointConfigurationName, System::String ^ remoteAddress);
public ServiceClient(string endpointConfigurationName, string remoteAddress);
new Microsoft.MasterDataServices.ServiceClient : string * string -> Microsoft.MasterDataServices.ServiceClient
Public Sub New (endpointConfigurationName As String, remoteAddress As String)
參數
- endpointConfigurationName
- String
端點配置的名稱。
- remoteAddress
- String
遠端位址的字串表示法。