WSHttpBindingBase 建構函式

定義

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

多載

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

適用於