CreateChannel Method (EndpointAddress)
Collapse the table of content
Expand the table of content

ChannelFactory<TChannel>.CreateChannel Method (EndpointAddress)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a channel that is used to send messages to a service at a specific endpoint address.

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

public TChannel CreateChannel(
	EndpointAddress to
)

Return Value

Type: TChannel
The TChannel of type IChannel created by the factory.

Implements

IChannelFactory<TChannel>.CreateChannel(EndpointAddress)

ExceptionCondition
ArgumentNullException

address is null.

Version Notes

Windows Phone

This member is present but is not supported on Windows Phone.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft