共用方式為


ContextBindingElement 建構函式

定義

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

多載

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 ()

備註

設定 SignProtectionLevel 預設值,以及 ContextSoapHeaderContextExchangeMechanism 預設值。

適用於

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 無效。

備註

設定 ContextSoapHeaderContextExchangeMechanism 預設值。

適用於

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

例外狀況

protectionLevelcontextExchangeMechanism 無效。

適用於

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

適用於