WSHttpContextBinding 构造函数

定义

初始化 WSHttpContextBinding 类的新实例。

重载

WSHttpContextBinding()

初始化 WSHttpContextBinding 类的新实例。

WSHttpContextBinding(SecurityMode)

使用指定的 WSHttpContextBinding 初始化 SecurityMode 类的新实例。

WSHttpContextBinding(String)

使用指定的绑定配置初始化 WSHttpContextBinding 类的新实例。

WSHttpContextBinding(SecurityMode, Boolean)

使用指定的 WSHttpContextBinding 和可靠的会话设置初始化 SecurityMode 类的新实例。

WSHttpContextBinding()

初始化 WSHttpContextBinding 类的新实例。

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

适用于

WSHttpContextBinding(SecurityMode)

使用指定的 WSHttpContextBinding 初始化 SecurityMode 类的新实例。

public:
 WSHttpContextBinding(System::ServiceModel::SecurityMode securityMode);
public WSHttpContextBinding (System.ServiceModel.SecurityMode securityMode);
new System.ServiceModel.WSHttpContextBinding : System.ServiceModel.SecurityMode -> System.ServiceModel.WSHttpContextBinding
Public Sub New (securityMode As SecurityMode)

参数

securityMode
SecurityMode

安全模式。

注解

要配置安全性但不启用可靠会话时使用此构造函数。

适用于

WSHttpContextBinding(String)

使用指定的绑定配置初始化 WSHttpContextBinding 类的新实例。

public:
 WSHttpContextBinding(System::String ^ configName);
public WSHttpContextBinding (string configName);
new System.ServiceModel.WSHttpContextBinding : string -> System.ServiceModel.WSHttpContextBinding
Public Sub New (configName As String)

参数

configName
String

绑定配置的名称。

注解

参数 configName 应设置为配置文件中配置此绑定的元素的名称 <binding>

适用于

WSHttpContextBinding(SecurityMode, Boolean)

使用指定的 WSHttpContextBinding 和可靠的会话设置初始化 SecurityMode 类的新实例。

public:
 WSHttpContextBinding(System::ServiceModel::SecurityMode securityMode, bool reliableSessionEnabled);
public WSHttpContextBinding (System.ServiceModel.SecurityMode securityMode, bool reliableSessionEnabled);
new System.ServiceModel.WSHttpContextBinding : System.ServiceModel.SecurityMode * bool -> System.ServiceModel.WSHttpContextBinding
Public Sub New (securityMode As SecurityMode, reliableSessionEnabled As Boolean)

参数

securityMode
SecurityMode

安全模式。

reliableSessionEnabled
Boolean

若要启用可靠会话,则为 true;否则为 false

注解

要配置安全性并启用可靠会话时使用此构造函数。

适用于