Export (0) Print
Expand All

ConfigurationChannelFactory<TChannel> Constructor

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

Namespace:  System.ServiceModel.Configuration
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.

ExceptionCondition
ArgumentNullException

endpointConfigurationName is null.

ArgumentNullException

configuration is null.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft