BindingContext.Binding Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the binding for the channel built in the current context.
public:
property System::ServiceModel::Channels::CustomBinding ^ Binding { System::ServiceModel::Channels::CustomBinding ^ get(); };
public System.ServiceModel.Channels.CustomBinding Binding { get; }
member this.Binding : System.ServiceModel.Channels.CustomBinding
Public ReadOnly Property Binding As CustomBinding
Property Value
The CustomBinding for the channel built in the current context.
Examples
CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
Binding binding2 = context.Binding;
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
Dim binding2 As Binding = context.Binding
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.