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

注解

SignProtectionLevelContextSoapHeaderContextExchangeMechanism 设置默认值。

适用于

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

适用于