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

ChannelFactory(Of TChannel).CreateChannel Method (EndpointAddress, Uri)

[ 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 through a specified transport address.

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

'Declaration
Public Overridable Function CreateChannel ( _
	to As EndpointAddress, _
	via As Uri _
) As TChannel

Parameters

to
Type: System.ServiceModel.EndpointAddress
via
Type: System.Uri
The Uri that contains the transport address to which the channel sends messages.

Return Value

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

Implements

IChannelFactory(Of TChannel).CreateChannel(EndpointAddress, Uri)

ExceptionCondition
ArgumentNullException

address is Nothing.

InvalidOperationException

The ChannelFactory has duplex operations it does not support.

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