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

注解

设置 for SignProtectionLevel for 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

适用于