ChannelFactory.InitializeEndpoint Metodo

Definizione

Inizializza l'endpoint del servizio della channel factory.Initializes the service endpoint of the channel factory.

Overload

InitializeEndpoint(String, EndpointAddress)

Inizializza l'endpoint del servizio della channel factory con un indirizzo e una configurazione specificati.Initializes the service endpoint of the channel factory with a specified address and configuration.

InitializeEndpoint(Binding, EndpointAddress)

Inizializza l'endpoint del servizio della channel factory con un'associazione e un indirizzo specificati.Initializes the service endpoint of the channel factory with a specified binding and address.

InitializeEndpoint(ServiceEndpoint)

Inizializza l'endpoint del servizio della channel factory con un endpoint sepcificato.Initializes the service endpoint of the channel factory with a specified endpoint.

Commenti

Per inizializzare un endpoint è necessario disporre di un indirizzo, ma anziché l'endpoint completo è sufficiente l'associazione o la configurazione.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)

Inizializza l'endpoint del servizio della channel factory con un indirizzo e una configurazione specificati.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)

Parametri

configurationName
String

Nome del file di configurazione utilizzato per inizializzare la channel factory.The name of the configuration file used to initialize the channel factory.

address
EndpointAddress

Elemento EndpointAddress da utilizzare per inizializzare la channel factory.The EndpointAddress with which to initialize the channel factory.

Commenti

Utilizzare InitializeEndpoint(Binding, EndpointAddress) se si dispone solo dell'associazione.Use InitializeEndpoint(Binding, EndpointAddress) if you have just the binding.

InitializeEndpoint(Binding, EndpointAddress)

Inizializza l'endpoint del servizio della channel factory con un'associazione e un indirizzo specificati.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

Parametri

binding
Binding

Elemento Binding da utilizzare per inizializzare la channel factory.The Binding with which to initialize the channel factory.

address
EndpointAddress

Elemento EndpointAddress da utilizzare per inizializzare la channel factory.The EndpointAddress with which to initialize the channel factory.

Commenti

Utilizzare InitializeEndpoint(String, EndpointAddress) se si dispone solo della configurazione.Use InitializeEndpoint(String, EndpointAddress) if you have the configuration.

InitializeEndpoint(ServiceEndpoint)

Inizializza l'endpoint del servizio della channel factory con un endpoint sepcificato.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)

Parametri

endpoint
ServiceEndpoint

Elemento ServiceEndpoint utilizzato per inizializzare la channel factory.The ServiceEndpoint to initialize the channel factory with.

Eccezioni

endpoint è null.endpoint is null.

Commenti

Utilizzare InitializeEndpoint(Binding, EndpointAddress) se si dispone solo dell'associazione.Use InitializeEndpoint(Binding, EndpointAddress) if you have just the binding. Utilizzare InitializeEndpoint(String, EndpointAddress) se si dispone solo della configurazione.Use InitializeEndpoint(String, EndpointAddress) if you have the configuration.

Si applica a