แก้ไข

แชร์ผ่าน


ConfigurationChannelFactory<TChannel> Constructor

Definition

Creates a new instance of the ConfigurationChannelFactory<TChannel> class with the specified endpoint configuration name, Configuration object, and the EndpointAddress object.

public:
 ConfigurationChannelFactory(System::String ^ endpointConfigurationName, System::Configuration::Configuration ^ configuration, System::ServiceModel::EndpointAddress ^ remoteAddress);
public ConfigurationChannelFactory (string endpointConfigurationName, System.Configuration.Configuration configuration, System.ServiceModel.EndpointAddress remoteAddress);
new System.ServiceModel.Configuration.ConfigurationChannelFactory<'Channel> : string * System.Configuration.Configuration * System.ServiceModel.EndpointAddress -> System.ServiceModel.Configuration.ConfigurationChannelFactory<'Channel>
Public Sub New (endpointConfigurationName As String, configuration As Configuration, remoteAddress As EndpointAddress)

Parameters

endpointConfigurationName
String

The name property in an endpoint configuration element.

configuration
Configuration

The settings that define the information in the endpoint element.

remoteAddress
EndpointAddress

The IP address of a destination endpoint in a client or server session. This parameter may be set to null to indicate the endpoint address should be taken from the configuration element specified in the configuration parameter.

Exceptions

endpointConfigurationName or configuration is null.

Applies to