Edit

Share via


ChannelFactory.InitializeEndpoint Method

Definition

Initializes the service endpoint of the channel factory.

Overloads

InitializeEndpoint(String, EndpointAddress)

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

InitializeEndpoint(Binding, EndpointAddress)

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

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)

Source:
ChannelFactory.cs
Source:
ChannelFactory.cs

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

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)

Parameters

configurationName
String

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

address
EndpointAddress

The EndpointAddress with which to initialize the channel factory.

Remarks

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

Applies to

InitializeEndpoint(Binding, EndpointAddress)

Source:
ChannelFactory.cs
Source:
ChannelFactory.cs
Source:
ChannelFactory.cs

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
Protected Sub InitializeEndpoint (binding As Binding, address As EndpointAddress)

Parameters

binding
Binding

The Binding with which to initialize the channel factory.

address
EndpointAddress

The EndpointAddress with which to initialize the channel factory.

Remarks

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

Applies to

InitializeEndpoint(ServiceEndpoint)

Source:
ChannelFactory.cs
Source:
ChannelFactory.cs
Source:
ChannelFactory.cs

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

The ServiceEndpoint to initialize the channel factory with.

Exceptions

endpoint is null.

Remarks

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

Applies to