BindingContext.BindingParameters Property


Gets the collection of binding parameters for the channel built in the current context.

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

public BindingParameterCollection BindingParameters { get; }

Property Value

Type: System.ServiceModel.Channels.BindingParameterCollection

The BindingParameterCollection for the channel built in the current context.

This collection holds the settings encountered when building the channel stack from the bindings. Settings that need to be pushed down the channel stack during creation are put into the collection until a channel lower in the stack needs them.

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
BindingParameterCollection bindingParams = context.BindingParameters;

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top