語言

WSHttpBindingBase 建構函式

定義

初始化 WSHttpBindingBase 類別的新執行個體。

多載

名稱 Description
WSHttpBindingBase()

初始化 WSHttpBindingBase 類別的新執行個體。

WSHttpBindingBase(Boolean)

初始化一個新的類別實例 WSHttpBindingBase ,並以表示是否啟用可靠會話的值。

WSHttpBindingBase()

來源:
WSHttpBindingBase.cs
來源:
WSHttpBindingBase.cs
來源:
WSHttpBindingBase.cs

初始化 WSHttpBindingBase 類別的新執行個體。

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

範例

此範例展示了如何使用無參數建構子。

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

適用於

WSHttpBindingBase(Boolean)

來源:
WSHttpBindingBase.cs
來源:
WSHttpBindingBase.cs
來源:
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

適用於