語言

ContextBindingElement 建構函式

定義

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

多載

名稱 Description
ContextBindingElement()

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

ContextBindingElement(ProtectionLevel)

使用指定的保護層級,初始化 ContextBindingElement 類別的新實例。

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism)

使用指定的保護和交換機制層級,初始化 ContextBindingElement 類別的新實例。

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism, Uri)

使用指定的保護層級、內容交換機制和用戶端回呼位址,初始化 ContextBindingElement 類別的新實例。

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism, Uri, Boolean)

使用指定的保護層級、內容交換機制、用戶端回呼位址,以及指定是否啟用內容管理的值,初始化 ContextBindingElement 類別的新實例。

ContextBindingElement()

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

public:
 ContextBindingElement();
public ContextBindingElement();
Public Sub New ()

備註

設定 對 和 SignProtectionLevelContextSoapHeader的預設值。ContextExchangeMechanism

適用於

ContextBindingElement(ProtectionLevel)

使用指定的保護層級,初始化 ContextBindingElement 類別的新實例。

public:
 ContextBindingElement(System::Net::Security::ProtectionLevel protectionLevel);
public ContextBindingElement(System.Net.Security.ProtectionLevel protectionLevel);
new System.ServiceModel.Channels.ContextBindingElement : System.Net.Security.ProtectionLevel -> System.ServiceModel.Channels.ContextBindingElement
Public Sub New (protectionLevel As ProtectionLevel)

參數

protectionLevel
ProtectionLevel

這是 ProtectionLevel 為了綁定元素。

例外狀況

這個 protectionLevel 並不成立。

備註

設定 的ContextSoapHeader預設值。ContextExchangeMechanism

適用於

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism)

使用指定的保護和交換機制層級,初始化 ContextBindingElement 類別的新實例。

public:
 ContextBindingElement(System::Net::Security::ProtectionLevel protectionLevel, System::ServiceModel::Channels::ContextExchangeMechanism contextExchangeMechanism);
public ContextBindingElement(System.Net.Security.ProtectionLevel protectionLevel, System.ServiceModel.Channels.ContextExchangeMechanism contextExchangeMechanism);
new System.ServiceModel.Channels.ContextBindingElement : System.Net.Security.ProtectionLevel * System.ServiceModel.Channels.ContextExchangeMechanism -> System.ServiceModel.Channels.ContextBindingElement
Public Sub New (protectionLevel As ProtectionLevel, contextExchangeMechanism As ContextExchangeMechanism)

參數

protectionLevel
ProtectionLevel

這是 ProtectionLevel 為了綁定元素。

contextExchangeMechanism
ContextExchangeMechanism

該 ContextExchangeMechanism 定義了用於交換綁定元素上下文的機制。

例外狀況

protectionLevel 或 contextExchangeMechanism 是不成立。

適用於

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism, Uri)

使用指定的保護層級、內容交換機制和用戶端回呼位址,初始化 ContextBindingElement 類別的新實例。

public:
 ContextBindingElement(System::Net::Security::ProtectionLevel protectionLevel, System::ServiceModel::Channels::ContextExchangeMechanism contextExchangeMechanism, Uri ^ clientCallbackAddress);
public ContextBindingElement(System.Net.Security.ProtectionLevel protectionLevel, System.ServiceModel.Channels.ContextExchangeMechanism contextExchangeMechanism, Uri clientCallbackAddress);
new System.ServiceModel.Channels.ContextBindingElement : System.Net.Security.ProtectionLevel * System.ServiceModel.Channels.ContextExchangeMechanism * Uri -> System.ServiceModel.Channels.ContextBindingElement
Public Sub New (protectionLevel As ProtectionLevel, contextExchangeMechanism As ContextExchangeMechanism, clientCallbackAddress As Uri)

參數

protectionLevel
ProtectionLevel

保護層構成了結合元件。

contextExchangeMechanism
ContextExchangeMechanism

用於交換綁定元素上下文的機制。

clientCallbackAddress
Uri

客戶回撥地址。

適用於

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism, Uri, Boolean)

使用指定的保護層級、內容交換機制、用戶端回呼位址,以及指定是否啟用內容管理的值,初始化 ContextBindingElement 類別的新實例。

public:
 ContextBindingElement(System::Net::Security::ProtectionLevel protectionLevel, System::ServiceModel::Channels::ContextExchangeMechanism contextExchangeMechanism, Uri ^ clientCallbackAddress, bool contextManagementEnabled);
public ContextBindingElement(System.Net.Security.ProtectionLevel protectionLevel, System.ServiceModel.Channels.ContextExchangeMechanism contextExchangeMechanism, Uri clientCallbackAddress, bool contextManagementEnabled);
new System.ServiceModel.Channels.ContextBindingElement : System.Net.Security.ProtectionLevel * System.ServiceModel.Channels.ContextExchangeMechanism * Uri * bool -> System.ServiceModel.Channels.ContextBindingElement
Public Sub New (protectionLevel As ProtectionLevel, contextExchangeMechanism As ContextExchangeMechanism, clientCallbackAddress As Uri, contextManagementEnabled As Boolean)

參數

protectionLevel
ProtectionLevel

結合元件的保護等級。

contextExchangeMechanism
ContextExchangeMechanism

用於交換綁定元素上下文的機制。

clientCallbackAddress
Uri

客戶回撥地址。

contextManagementEnabled
Boolean

true 如果啟用了上下文管理;否則 false。

適用於