BindingContext.BindingParameters 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得建置於目前內容中之通道的繫結參數集合。
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
備註
這個集合會保存從繫結建立通道堆疊時所遇到的設定。 在建立期間必須在通道堆疊內往下推動的設定會被放入此集合中,直到堆疊內較低層的通道需要這些設定為止。