共用方式為


BindingContext.RemainingBindingElements 屬性

定義

取得其他繫結程序項目用來建構通道堆疊的繫結程序項目。

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

屬性值

BindingElementCollection,其中包含其他繫結程序項目用來建構通道堆疊的繫結程序項目。

範例

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
BindingElementCollection bindingElements = context.RemainingBindingElements;
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
Dim bindingElements As BindingElementCollection = context.RemainingBindingElements

備註

放入此集合中的繫結項目,指的是那些未直接對應到其中一個通道堆疊內之接聽程式或處理站的項目。 例如,編碼器繫結項目最後會在此集合中,然後由傳輸通道用來建構訊息編碼器。

適用於