IChannelFactory<TChannel>::CreateChannel Method
Creates a channel of a specified type to a specified endpoint address.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Name | Description | |
|---|---|---|
![]() | CreateChannel(EndpointAddress^) | Creates a channel of a specified type to a specified endpoint address. |
![]() | CreateChannel(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.
