ConfigurationChannelFactory<TChannel> Constructor (String, Configuration, EndpointAddress)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Exception Condition
ArgumentNullException

endpointConfigurationName is null.

ArgumentNullException

configuration is null.

.NET Framework
Available since 3.0
Return to top
Show: