BindingContext.CanBuildInnerChannelListener<TChannel> Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a value that indicates whether the inner channel listener can be built to listen for a specified type of channel.

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

public bool CanBuildInnerChannelListener<TChannel>()
where TChannel : class, IChannel

Return Value

Type: System.Boolean

true if the inner channel listener can be built to listen for the TChannel specified; otherwise, false.

Type Parameters

TChannel

The type of IChannel object for which the inner channel listener listens.

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
context.CanBuildInnerChannelListener<IDuplexChannel>();

.NET Framework
Available since 3.0
Return to top
Show: