LoadBalancingSupportedAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 LoadBalancingSupportedAttribute 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| 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