WSHttpBindingBase 构造函数

定义

初始化 WSHttpBindingBase 类的新实例。

重载

WSHttpBindingBase()

初始化 WSHttpBindingBase 类的新实例。

WSHttpBindingBase(Boolean)

用一个值初始化 WSHttpBindingBase 类的新实例,该值指定是否已启用可靠会话。

WSHttpBindingBase()

Source:
WSHttpBindingBase.cs
Source:
WSHttpBindingBase.cs
Source:
WSHttpBindingBase.cs

初始化 WSHttpBindingBase 类的新实例。

protected:
 WSHttpBindingBase();
protected WSHttpBindingBase ();
Protected Sub New ()

示例

此示例演示如何使用无参数构造函数。

WSHttpBinding binding1 = new WSHttpBinding();
Dim binding1 As New WSHttpBinding()

适用于

WSHttpBindingBase(Boolean)

Source:
WSHttpBindingBase.cs
Source:
WSHttpBindingBase.cs
Source:
WSHttpBindingBase.cs

用一个值初始化 WSHttpBindingBase 类的新实例,该值指定是否已启用可靠会话。

protected:
 WSHttpBindingBase(bool reliableSessionEnabled);
protected WSHttpBindingBase (bool reliableSessionEnabled);
new System.ServiceModel.WSHttpBindingBase : bool -> System.ServiceModel.WSHttpBindingBase
Protected Sub New (reliableSessionEnabled As Boolean)

参数

reliableSessionEnabled
Boolean

如果已启用可靠会话,则为 true;否则为 false

适用于