ChannelFactory.InitializeEndpoint 方法

定义

初始化通道工厂的服务终结点。

重载

InitializeEndpoint(Binding, EndpointAddress)

使用指定的绑定和地址初始化通道工厂的服务终结点。

InitializeEndpoint(String, EndpointAddress)

使用指定的地址和配置初始化通道工厂的服务终结点。

InitializeEndpoint(ServiceEndpoint)

使用指定的终结点初始化通道工厂的服务终结点。

InitializeEndpoint(EndpointAddress)

注解

若要初始化终结点,必须有一个地址,但是可以只有绑定或配置,而非完整终结点。

InitializeEndpoint(Binding, EndpointAddress)

Source:
ChannelFactory.cs
Source:
ChannelFactory.cs
Source:
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)

Source:
ChannelFactory.cs
Source:
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)

Source:
ChannelFactory.cs
Source:
ChannelFactory.cs
Source:
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)

Source:
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

适用于