Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateChannel Method (EndpointAddress)
Collapse the table of content
Expand the table of content

IChannelFactory<TChannel>.CreateChannel Method (EndpointAddress)

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

Namespace:  System.ServiceModel.Channels
Assemblies:   System.ServiceModel (in System.ServiceModel.dll)
  System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)

TChannel CreateChannel(
	EndpointAddress to


Type: System.ServiceModel.EndpointAddress

The EndpointAddress that provides the location of the service.

Return Value

Type: TChannel
A channel of type TChannel to the specified endpoint address.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft