Export (0) Print
Expand All

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.

  Name Description
Public method CreateChannel Creates a channel that is used to send messages to a service.
Public method Supported by Silverlight for Windows Phone CreateChannel(EndpointAddress) Creates a channel that is used to send messages to a service at a specific endpoint address.
Public method Supported by Silverlight for Windows Phone 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.
Top

Creates a channel of type TChannel, the generic parameter for the class.


			'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)



Community Additions

ADD
Show:
© 2015 Microsoft