共用方式為


ChannelFactory.InitializeEndpoint 方法

定義

初始化通道處理站的服務端點。

多載

InitializeEndpoint(Binding, EndpointAddress)

使用指定的繫結和位址,初始化通道處理站的服務端點。

InitializeEndpoint(String, EndpointAddress)

使用指定的位址和組態,初始化通道處理站的服務端點。

InitializeEndpoint(ServiceEndpoint)

使用指定的端點,初始化通道處理站的服務端點。

InitializeEndpoint(EndpointAddress)

備註

您必須有要用來初始化端點的位址,但是您可以只有繫結或組態,而不一定要有完整的端點。

InitializeEndpoint(Binding, EndpointAddress)

來源:
ChannelFactory.cs
來源:
ChannelFactory.cs
來源:
ChannelFactory.cs

使用指定的繫結和位址,初始化通道處理站的服務端點。

protected:
 void InitializeEndpoint(System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::EndpointAddress ^ address);
protected void InitializeEndpoint (System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress address);
member this.InitializeEndpoint : System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> unit
Protected Sub InitializeEndpoint (binding As Binding, address As EndpointAddress)

參數

binding
Binding

用於初始化通道處理站的 Binding

address
EndpointAddress

用於初始化通道處理站的 EndpointAddress

備註

如果您有組態,請使用 InitializeEndpoint(String, EndpointAddress)

適用於

InitializeEndpoint(String, EndpointAddress)

來源:
ChannelFactory.cs
來源:
ChannelFactory.cs

使用指定的位址和組態,初始化通道處理站的服務端點。

protected:
 void InitializeEndpoint(System::String ^ configurationName, System::ServiceModel::EndpointAddress ^ address);
protected void InitializeEndpoint (string configurationName, System.ServiceModel.EndpointAddress address);
member this.InitializeEndpoint : string * System.ServiceModel.EndpointAddress -> unit
Protected Sub InitializeEndpoint (configurationName As String, address As EndpointAddress)

參數

configurationName
String

用於初始化通道處理站的組態檔名稱。

address
EndpointAddress

用於初始化通道處理站的 EndpointAddress

備註

如果您只有繫結,請使用 InitializeEndpoint(Binding, EndpointAddress)

適用於

InitializeEndpoint(ServiceEndpoint)

來源:
ChannelFactory.cs
來源:
ChannelFactory.cs
來源:
ChannelFactory.cs

使用指定的端點,初始化通道處理站的服務端點。

protected:
 void InitializeEndpoint(System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
protected void InitializeEndpoint (System.ServiceModel.Description.ServiceEndpoint endpoint);
member this.InitializeEndpoint : System.ServiceModel.Description.ServiceEndpoint -> unit
Protected Sub InitializeEndpoint (endpoint As ServiceEndpoint)

參數

endpoint
ServiceEndpoint

用於初始化通道處理站的 ServiceEndpoint

例外狀況

endpointnull

備註

如果您只有繫結,請使用 InitializeEndpoint(Binding, EndpointAddress)。 如果您有組態,請使用 InitializeEndpoint(String, EndpointAddress)

適用於

InitializeEndpoint(EndpointAddress)

來源:
ChannelFactory.cs
protected:
 void InitializeEndpoint(System::ServiceModel::EndpointAddress ^ address);
protected void InitializeEndpoint (System.ServiceModel.EndpointAddress address);
member this.InitializeEndpoint : System.ServiceModel.EndpointAddress -> unit
Protected Sub InitializeEndpoint (address As EndpointAddress)

參數

address
EndpointAddress

適用於