WindowsStreamSecurityBindingElement 類別

定義

表示用來指定 Windows 資料流安全性設定的繫結項目。

public ref class WindowsStreamSecurityBindingElement : System::ServiceModel::Channels::BindingElement
public ref class WindowsStreamSecurityBindingElement : System::ServiceModel::Channels::StreamUpgradeBindingElement
public ref class WindowsStreamSecurityBindingElement : System::ServiceModel::Channels::StreamUpgradeBindingElement, System::ServiceModel::Channels::ITransportTokenAssertionProvider, System::ServiceModel::Description::IPolicyExportExtension
public class WindowsStreamSecurityBindingElement : System.ServiceModel.Channels.BindingElement
public class WindowsStreamSecurityBindingElement : System.ServiceModel.Channels.StreamUpgradeBindingElement
public class WindowsStreamSecurityBindingElement : System.ServiceModel.Channels.StreamUpgradeBindingElement, System.ServiceModel.Channels.ITransportTokenAssertionProvider, System.ServiceModel.Description.IPolicyExportExtension
type WindowsStreamSecurityBindingElement = class
    inherit BindingElement
type WindowsStreamSecurityBindingElement = class
    inherit StreamUpgradeBindingElement
type WindowsStreamSecurityBindingElement = class
    inherit StreamUpgradeBindingElement
    interface ITransportTokenAssertionProvider
    interface IPolicyExportExtension
Public Class WindowsStreamSecurityBindingElement
Inherits BindingElement
Public Class WindowsStreamSecurityBindingElement
Inherits StreamUpgradeBindingElement
Public Class WindowsStreamSecurityBindingElement
Inherits StreamUpgradeBindingElement
Implements IPolicyExportExtension, ITransportTokenAssertionProvider
繼承
WindowsStreamSecurityBindingElement
繼承
WindowsStreamSecurityBindingElement
實作

備註

TCP 和具名管道這類使用資料流導向通訊協定的傳輸,支援資料流傳輸升級。 具體來說,WCF 會提供安全性升級。 此傳輸安全性的組態是由此類別和 SslStreamSecurityBindingElement 所封裝,對此您可加以設定並新增至自訂繫結。 除此之外,協力廠商可撰寫其自訂 StreamSecurityBindingElement。 這些繫結項目會針對建置用戶端和伺服器的資料流升級提供者所呼叫的 StreamUpgradeBindingElement 類別加以擴充。

自訂繫結包含以特定順序排列的繫結項目之集合:第一個會新增代表繫結堆疊頂端的項目,第二個新增繫結堆疊中次一項目,依此類推。

若要將這個類別加入至繫結

  1. 建立 BindingElementCollection

  2. 建立在繫結堆疊中位於此繫結項目上方任何必要的自訂繫結項目,例如選擇性的 TransactionFlowBindingElementReliableSessionBindingElement

  3. 依先前所述的順序,使用 BindingElementCollection 方法將這些建立的項目加入至 InsertItem

  4. 建立 WindowsStreamSecurityBindingElement 的執行個體,並將它新增至集合。

  5. 將其他任何自訂繫結項目新增至集合中,例如 TcpTransportBindingElement

建構函式

WindowsStreamSecurityBindingElement()

初始化 WindowsStreamSecurityBindingElement 類別的新執行個體。

WindowsStreamSecurityBindingElement(WindowsStreamSecurityBindingElement)

從現有的執行個體初始化 WindowsStreamSecurityBindingElement 類別的新執行個體。

屬性

ProtectionLevel

取得或設定保護層級。

方法

BuildChannelFactory<TChannel>(BindingContext)

建立可用來建立通道的通道處理站。

BuildChannelListener<TChannel>(BindingContext)

建立指定型別的通道接聽程式。

BuildChannelListener<TChannel>(BindingContext)

初始化通道接聽項,以便從繫結內容接受指定之類型的通道。

(繼承來源 BindingElement)
BuildClientStreamUpgradeProvider(BindingContext)

根據提供的通道內容,於 StreamUpgradeProvider 的用戶端上建立執行個體。

BuildServerStreamUpgradeProvider(BindingContext)

根據提供的通道內容,於 StreamUpgradeProvider 的伺服器上建立執行個體。

BuildServerStreamUpgradeProvider(BindingContext)

根據提供的通道內容,於 StreamUpgradeProvider 的伺服器上建立執行個體。

(繼承來源 StreamUpgradeBindingElement)
CanBuildChannelFactory<TChannel>(BindingContext)

判斷是否可以建置指定之型別的通道處理站。

CanBuildChannelListener<TChannel>(BindingContext)

判斷是否可以建置指定之型別的通道接聽項。

CanBuildChannelListener<TChannel>(BindingContext)

傳回值,指出繫結項目是否可以建置特定通道型別的通道接聽程式。

(繼承來源 BindingElement)
Clone()

建立這個類別執行個體的新繫結項目。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetProperty<T>(BindingContext)

BindingContext 中取得指定的物件。

GetTransportTokenAssertion()

取得 XmlElement,表示安全性繫結中所使用的傳輸權杖。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

匯出 Windows 資料流安全性的自訂原則判斷提示。

適用於

另請參閱