LoadBalancingSupportedAttribute Class
.NET Framework 2.0
Determines whether the component participates in load balancing, if the component load balancing service is installed and enabled on the server.
Namespace: System.EnterpriseServices
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)
'Declaration <ComVisibleAttribute(False)> _ <AttributeUsageAttribute(AttributeTargets.Class, Inherited:=True)> _ Public NotInheritable Class LoadBalancingSupportedAttribute Inherits Attribute 'Usage Dim instance As LoadBalancingSupportedAttribute
/** @attribute ComVisibleAttribute(false) */ /** @attribute AttributeUsageAttribute(AttributeTargets.Class, Inherited=true) */ public final class LoadBalancingSupportedAttribute extends Attribute
ComVisibleAttribute(false) AttributeUsageAttribute(AttributeTargets.Class, Inherited=true) public final class LoadBalancingSupportedAttribute extends Attribute
The following code example demonstrates the use of the LoadBalancingSupportedAttribute type.
Imports System Imports System.EnterpriseServices Imports System.Reflection ' References: ' System.EnterpriseServices <LoadBalancingSupported()> _ Public Class LoadBalancingSupportedAttribute_Ctor Inherits ServicedComponent End Class 'LoadBalancingSupportedAttribute_Ctor <LoadBalancingSupported(False)> _ Public Class LoadBalancingSupportedAttribute_Ctor_Bool Inherits ServicedComponent End Class 'LoadBalancingSupportedAttribute_Ctor_Bool <LoadBalancingSupported(False)> _ Public Class LoadBalancingSupportedAttribute_Value Inherits ServicedComponent Public Sub ValueExample() ' Get the LoadBalancingSupportedAttribute applied to the class. Dim attribute As LoadBalancingSupportedAttribute = CType(Attribute.GetCustomAttribute(Me.GetType(), GetType(LoadBalancingSupportedAttribute), False), LoadBalancingSupportedAttribute) ' Display the value of the attribute's Value property. MsgBox("LoadBalancingSupportedAttribute.Value: " & attribute.Value) End Sub 'ValueExample End Class 'LoadBalancingSupportedAttribute_Value
import System.*;
import System.EnterpriseServices.*;
import System.Reflection.*;
// References:
// System.EnterpriseServices
/** @attribute LoadBalancingSupported()
*/
public class LoadBalancingSupportedAttribute_Ctor extends ServicedComponent
{
} //LoadBalancingSupportedAttribute_Ctor
/** @attribute LoadBalancingSupported(false)
*/
public class LoadBalancingSupportedAttribute_Ctor_Bool extends ServicedComponent
{
} //LoadBalancingSupportedAttribute_Ctor_Bool
/** @attribute LoadBalancingSupported(false)
*/
public class LoadBalancingSupportedAttribute_Value extends ServicedComponent
{
public void ValueExample()
{
// Get the LoadBalancingSupportedAttribute applied to the class.
LoadBalancingSupportedAttribute attribute =
(LoadBalancingSupportedAttribute)(Attribute.GetCustomAttribute(
this.GetType(), LoadBalancingSupportedAttribute.class.ToType(),
false));
// Display the value of the attribute's Value property.
Console.WriteLine("LoadBalancingSupportedAttribute.Value: {0}",
(System.Boolean)attribute.get_Value());
} //ValueExample
} //LoadBalancingSupportedAttribute_Value
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: