ChannelFactory.InitializeEndpoint ChannelFactory.InitializeEndpoint ChannelFactory.InitializeEndpoint ChannelFactory.InitializeEndpoint Method

Definition

Initializes the service endpoint of the channel factory.

Overloads

InitializeEndpoint(String, EndpointAddress) InitializeEndpoint(String, EndpointAddress) InitializeEndpoint(String, EndpointAddress) InitializeEndpoint(String, EndpointAddress)

Initializes the service endpoint of the channel factory with a specified address and configuration.

InitializeEndpoint(Binding, EndpointAddress) InitializeEndpoint(Binding, EndpointAddress) InitializeEndpoint(Binding, EndpointAddress)

Initializes the service endpoint of the channel factory with a specified binding and address.

InitializeEndpoint(ServiceEndpoint) InitializeEndpoint(ServiceEndpoint) InitializeEndpoint(ServiceEndpoint) InitializeEndpoint(ServiceEndpoint)

Initializes the service endpoint of the channel factory with a specified endpoint.

Remarks

You must have an address to initialize an endpoint, but can have just the binding or configuration instead of the full endpoint.

InitializeEndpoint(String, EndpointAddress) InitializeEndpoint(String, EndpointAddress) InitializeEndpoint(String, EndpointAddress) InitializeEndpoint(String, EndpointAddress)

Initializes the service endpoint of the channel factory with a specified address and configuration.

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

Parameters

configurationName
String String String String

The name of the configuration file used to initialize the channel factory.

address
EndpointAddress EndpointAddress EndpointAddress EndpointAddress

The EndpointAddress with which to initialize the channel factory.

Remarks

Use InitializeEndpoint(Binding, EndpointAddress) if you have just the binding.

InitializeEndpoint(Binding, EndpointAddress) InitializeEndpoint(Binding, EndpointAddress) InitializeEndpoint(Binding, EndpointAddress)

Initializes the service endpoint of the channel factory with a specified binding and address.

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

Parameters

binding
Binding Binding Binding Binding

The Binding with which to initialize the channel factory.

address
EndpointAddress EndpointAddress EndpointAddress EndpointAddress

The EndpointAddress with which to initialize the channel factory.

Remarks

Use InitializeEndpoint(String, EndpointAddress) if you have the configuration.

InitializeEndpoint(ServiceEndpoint) InitializeEndpoint(ServiceEndpoint) InitializeEndpoint(ServiceEndpoint) InitializeEndpoint(ServiceEndpoint)

Initializes the service endpoint of the channel factory with a specified endpoint.

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)

Parameters

endpoint
ServiceEndpoint ServiceEndpoint ServiceEndpoint ServiceEndpoint

The ServiceEndpoint to initialize the channel factory with.

Exceptions

Remarks

Use InitializeEndpoint(Binding, EndpointAddress) if you have just the binding. Use InitializeEndpoint(String, EndpointAddress) if you have the configuration.

Applies to