ConfigurationChannelFactory<TChannel> Constructor (String^, Configuration^, EndpointAddress^)
Creates a new instance of the ConfigurationChannelFactory<TChannel> class with the specified endpoint configuration name, Configuration object, and the EndpointAddress object.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public:
ConfigurationChannelFactory(
String^ endpointConfigurationName,
Configuration^ configuration,
EndpointAddress^ remoteAddress
)
Parameters
- endpointConfigurationName
-
Type:
System::String^
The name property in an endpoint configuration element.
- configuration
-
Type:
System.Configuration::Configuration^
The settings that define the information in the endpoint element.
- remoteAddress
-
Type:
System.ServiceModel::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.
| Exception | Condition |
|---|---|
| ArgumentNullException | endpointConfigurationName is null. |
| ArgumentNullException | configuration is null. |
Available since 3.0