ChannelFactory<TChannel> Constructor (Type)

 

Initializes a new instance of the ChannelFactory<TChannel> class.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected ChannelFactory(
	Type channelType
)

Parameters

channelType
Type: System.Type

The Type of channel produced by the factory.

Exception Condition
ArgumentNullException

The channelType is null.

InvalidOperationException

The channelType is a class or value type and is not an interface.

Use this constructor when you want to pass the channel type information programmatically rather than using an application configuration file. The channelType parameter must be an interface.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Return to top
Show: