ChannelFactory(Of TChannel).CreateChannel Method
Creates a channel of a specified type to communicate with a specified endpoint address.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
|CreateChannel||Creates a channel that is used to send messages to a service.|
|CreateChannel(EndpointAddress)||Creates a channel that is used to send messages to a service at a specific endpoint address.|
|CreateChannel(EndpointAddress, Uri)||Creates a channel that is used to send messages to a service at a specific endpoint address through a specified transport address.|
'Create a request channel specifying a remote endpoint address and a transport address. Dim address4 As New EndpointAddress("http://localhost:8000/ChannelApp") Dim via4 As New Uri("http://localhost:8000/Via") Dim factory4 As New ChannelFactory(Of IRequestChannel)("MyEndpointConfig") Dim channel4 As IRequestChannel = factory4.CreateChannel(address4, via4)