IChannelFactory<TChannel>.CreateChannel Method

 

Creates a channel of a specified type to a specified endpoint address.

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

NameDescription
System_CAPS_pubmethodCreateChannel(EndpointAddress)

Creates a channel of a specified type to a specified endpoint address.

System_CAPS_pubmethodCreateChannel(EndpointAddress, Uri)

Creates a channel of a specified type to a specified endpoint address and transport address to which messages are sent.

Use the CreateChannel(EndpointAddress, Uri) overload to distinguish the address to which the message is initially sent from the ultimate destination when you want to do manual routing. Note that any channels created by this channel factory are closed when the channel factory is closed. For a discussion of addressing, see the Endpoint Addresses topic.

Return to top
Show: