BindingContext.BindingParameters 属性

定义

获取当前上下文中生成的通道的绑定参数集合。

public:
 property System::ServiceModel::Channels::BindingParameterCollection ^ BindingParameters { System::ServiceModel::Channels::BindingParameterCollection ^ get(); };
public System.ServiceModel.Channels.BindingParameterCollection BindingParameters { get; }
member this.BindingParameters : System.ServiceModel.Channels.BindingParameterCollection
Public ReadOnly Property BindingParameters As BindingParameterCollection

属性值

当前上下文中生成的通道的 BindingParameterCollection

示例

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

注解

此集合保存从绑定生成通道堆栈时遇到的设置。 创建过程中需要压入通道堆栈的设置被放入集合中,直到堆栈中下方的通道需要这些设置。

适用于