CustomBindingCollectionElement 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表一組 customBinding 設定元素,為使用者提供對訊息堆疊的完整控制權。 此類別無法獲得繼承。
public ref class CustomBindingCollectionElement sealed : System::ServiceModel::Configuration::BindingCollectionElement
public sealed class CustomBindingCollectionElement : System.ServiceModel.Configuration.BindingCollectionElement
type CustomBindingCollectionElement = class
inherit BindingCollectionElement
Public NotInheritable Class CustomBindingCollectionElement
Inherits BindingCollectionElement
- 繼承
備註
自訂綁定提供對 Windows Communication Foundation(WCF)訊息堆疊的完整控制權。 個別綁定透過指定堆疊元素的配置元素,依序列在堆疊中出現的順序來定義訊息堆疊。 每個元素定義並配置堆疊中的一個元素。 每個自訂綁定中必須只有一個傳送元素。 沒有這個元素,訊息堆疊就不完整。
元素在堆疊中出現的順序很重要,因為這是對訊息進行操作的順序。 建議的堆疊元素順序如下:
交易(可選)
可靠訊息(可選)
安全性(選用)
Transport
編碼器(選用)
建構函式
| 名稱 | Description |
|---|---|
| CustomBindingCollectionElement() |
初始化 CustomBindingCollectionElement 類別的新執行個體。 |