LoadBalancingSupportedAttribute 建構函式

定義

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

多載

LoadBalancingSupportedAttribute()

指定負載平衡支援,來初始化 LoadBalancingSupportedAttribute 類別的新執行個體。

LoadBalancingSupportedAttribute(Boolean)

選擇性停用負載平衡支援,來初始化 LoadBalancingSupportedAttribute 類別的新執行個體。

LoadBalancingSupportedAttribute()

指定負載平衡支援,來初始化 LoadBalancingSupportedAttribute 類別的新執行個體。

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

範例

下列程式代碼範例會建立新的 LoadBalancingSupportedAttribute

[LoadBalancingSupported]
public class LoadBalancingSupportedAttribute_Ctor : ServicedComponent
{
}
<LoadBalancingSupported()>  _
Public Class LoadBalancingSupportedAttribute_Ctor
    Inherits ServicedComponent
End Class

適用於

LoadBalancingSupportedAttribute(Boolean)

選擇性停用負載平衡支援,來初始化 LoadBalancingSupportedAttribute 類別的新執行個體。

public:
 LoadBalancingSupportedAttribute(bool val);
public LoadBalancingSupportedAttribute (bool val);
new System.EnterpriseServices.LoadBalancingSupportedAttribute : bool -> System.EnterpriseServices.LoadBalancingSupportedAttribute
Public Sub New (val As Boolean)

參數

val
Boolean

若要啟用負載平衡支援,則為 true;否則為 false

範例

下列程式代碼範例會建立新的 LoadBalancingSupportedAttribute

[LoadBalancingSupported(false)]
public class LoadBalancingSupportedAttribute_Ctor_Bool : ServicedComponent
{
}
<LoadBalancingSupported(False)>  _
Public Class LoadBalancingSupportedAttribute_Ctor_Bool
    Inherits ServicedComponent
End Class

適用於