ContextBindingElement 构造函数

定义

初始化 ContextBindingElement 类的新实例。Initializes a new instance of the ContextBindingElement class.

重载

ContextBindingElement()

初始化 ContextBindingElement 类的新实例。Initializes a new instance of the ContextBindingElement class.

ContextBindingElement(ProtectionLevel)

使用指定的保护级别初始化 ContextBindingElement 类的新实例。Initializes a new instance of the ContextBindingElement class with a specified level of protection.

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism)

使用指定的保护级别和交换机制初始化 ContextBindingElement 类的新实例。Initializes a new instance of the ContextBindingElement class with a specified level of protection and exchange mechanism.

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism, Uri)

使用指定的保护级别、上下文交换机制和客户端回调地址初始化 ContextBindingElement 类的新实例。Initializes a new instance of the ContextBindingElement class with the specified protection level, context exchange mechanism, and client callback address.

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism, Uri, Boolean)

使用指定的保护级别、上下文交换机制、客户端回调地址和一个用于指定是否启用上下文管理的值,初始化 ContextBindingElement 类的新实例。Initializes a new instance of the ContextBindingElement class with the specified protection level, context exchange mechanism, client callback address, and a value that specifies whether context management is enabled.

ContextBindingElement()

初始化 ContextBindingElement 类的新实例。Initializes a new instance of the ContextBindingElement class.

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

注解

SignProtectionLevelContextSoapHeaderContextExchangeMechanism 设置默认值。Sets the default values of Sign for ProtectionLevel and ContextSoapHeader for ContextExchangeMechanism.

ContextBindingElement(ProtectionLevel)

使用指定的保护级别初始化 ContextBindingElement 类的新实例。Initializes a new instance of the ContextBindingElement class with a specified level of protection.

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

参数

protectionLevel
ProtectionLevel

绑定元素的 ProtectionLevelThe ProtectionLevel for the binding element.

异常

protectionLevel 无效。The protectionLevel is not valid.

注解

ContextSoapHeaderContextExchangeMechanism 设置默认值。Sets the default value of ContextSoapHeader for ContextExchangeMechanism.

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism)

使用指定的保护级别和交换机制初始化 ContextBindingElement 类的新实例。Initializes a new instance of the ContextBindingElement class with a specified level of protection and exchange mechanism.

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

参数

protectionLevel
ProtectionLevel

绑定元素的 ProtectionLevelThe ProtectionLevel for the binding element.

contextExchangeMechanism
ContextExchangeMechanism

指定用于交换绑定元素上下文的机制的 ContextExchangeMechanismThe ContextExchangeMechanism that specifies the mechanism used to exchange context for the binding element.

异常

protectionLevelcontextExchangeMechanism 无效。protectionLevel or contextExchangeMechanism is not valid.

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism, Uri)

使用指定的保护级别、上下文交换机制和客户端回调地址初始化 ContextBindingElement 类的新实例。Initializes a new instance of the ContextBindingElement class with the specified protection level, context exchange mechanism, and client callback address.

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

参数

protectionLevel
ProtectionLevel

绑定元素的保护级别。The protection level form the binding element.

contextExchangeMechanism
ContextExchangeMechanism

用于交换绑定元素上下文的机制。The mechanism used to exchange context for the binding element.

clientCallbackAddress
Uri

客户端回调地址。The client callback address.

ContextBindingElement(ProtectionLevel, ContextExchangeMechanism, Uri, Boolean)

使用指定的保护级别、上下文交换机制、客户端回调地址和一个用于指定是否启用上下文管理的值,初始化 ContextBindingElement 类的新实例。Initializes a new instance of the ContextBindingElement class with the specified protection level, context exchange mechanism, client callback address, and a value that specifies whether context management is enabled.

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

参数

protectionLevel
ProtectionLevel

绑定元素的保护级别。The protection level for the binding element.

contextExchangeMechanism
ContextExchangeMechanism

用于交换绑定元素上下文的机制。The mechanism used to exchange context for the binding element.

clientCallbackAddress
Uri

客户端回调地址。The client callback address.

contextManagementEnabled
Boolean

如果启用上下文管理,则为 true;否则为 falsetrue if the context management is enabled; otherwise false.

适用于