Export (0) Print
Expand All

Binding.BuildChannelListener(Of TChannel) Method (BindingParameterCollection)

Builds the channel listener on the service that accepts a specified type of channel and that satisfies the features specified by a collection of binding parameters.

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

'Declaration
Public Overridable Function BuildChannelListener(Of TChannel As {Class, IChannel}) ( _
	parameters As BindingParameterCollection _
) As IChannelListener(Of TChannel)

Type Parameters

TChannel

The type of channel the channel listener accepts.

Parameters

parameters
Type: System.ServiceModel.Channels.BindingParameterCollection

The BindingParameterCollection that specifies requirements for the channel listener that is built.

Return Value

Type: System.ServiceModel.Channels.IChannelListener(Of TChannel)
An IChannelListener(Of TChannel) of type TChannel that satisfies the features specified.

ExceptionCondition
InvalidOperationException

Transport element is missing or out of order or scheme is invalid or the message version is not specified.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft