BuildChannelFactory(TChannel) Method
Collapse the table of content
Expand the table of content

HttpCookieContainerBindingElement.BuildChannelFactory(Of TChannel) Method

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

Initializes a channel factory for producing channels of a specified type from the binding context.

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

'Declaration
Public Overrides Function BuildChannelFactory(Of TChannel) ( _
	context As BindingContext _
) As IChannelFactory(Of TChannel)

Type Parameters

TChannel

The type of channel that the factory builds.

Parameters

context
Type: System.ServiceModel.Channels.BindingContext
The BindingContext that provides context for the binding element.

Return Value

Type: System.ServiceModel.Channels.IChannelFactory(Of TChannel)
The IChannelFactory(Of TChannel) of type TChannel initialized from the context.

ExceptionCondition
ArgumentNullException

context is Nothing.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft