ChannelFactory<TChannel> Constructor ()

 
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.

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

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

public ChannelFactory()

This example shows how to create a new object of the ChannelFactory<TChannel> class with the IRequestChannel interface.

EndpointAddress address = new EndpointAddress("http://localhost:8000/ChannelApp");
ChannelFactory<IRequestChannel> factory = new ChannelFactory<IRequestChannel>("MyEndpoint", address);

.NET Framework
Available since 3.0
Return to top
Show: