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.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
'Declaration Public Overridable Function CreateChannel ( _ to As EndpointAddress, _ via As Uri _ ) As TChannel
Parameters
- via
- Type: System.Uri
The Uri that contains the transport address to which the channel sends messages.
Implements
IChannelFactory(Of TChannel).CreateChannel(EndpointAddress, Uri)| Exception | Condition |
|---|---|
| ArgumentNullException | address is Nothing. |
| InvalidOperationException | The ChannelFactory has duplex operations it does not support. |
Show: