LoadBalancingSupportedAttribute-Klasse
Bestimmt, ob die Komponente am Lastenausgleich beteiligt ist, wenn der Dienst für den Komponentenlastenausgleich installiert und auf dem Server aktiviert ist.
Namespace: System.EnterpriseServices
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)
Syntax
'Declaration
<ComVisibleAttribute(False)> _
<AttributeUsageAttribute(AttributeTargets.Class, Inherited:=True)> _
Public NotInheritable Class LoadBalancingSupportedAttribute
Inherits Attribute
'Usage
Dim instance As LoadBalancingSupportedAttribute
[ComVisibleAttribute(false)]
[AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)]
public sealed class LoadBalancingSupportedAttribute : Attribute
[ComVisibleAttribute(false)]
[AttributeUsageAttribute(AttributeTargets::Class, Inherited=true)]
public ref class LoadBalancingSupportedAttribute sealed : public Attribute
/** @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
Beispiel
Im folgenden Codebeispiel wird die Verwendung des LoadBalancingSupportedAttribute-Typs veranschaulicht.
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
using System;
using System.EnterpriseServices;
using System.Reflection;
// References:
// System.EnterpriseServices
[LoadBalancingSupported]
public class LoadBalancingSupportedAttribute_Ctor : ServicedComponent
{
}
[LoadBalancingSupported(false)]
public class LoadBalancingSupportedAttribute_Ctor_Bool : ServicedComponent
{
}
[LoadBalancingSupported(false)]
public class LoadBalancingSupportedAttribute_Value : ServicedComponent
{
public void ValueExample()
{
// Get the LoadBalancingSupportedAttribute applied to the class.
LoadBalancingSupportedAttribute attribute =
(LoadBalancingSupportedAttribute)Attribute.GetCustomAttribute(
this.GetType(),
typeof(LoadBalancingSupportedAttribute),
false);
// Display the value of the attribute's Value property.
Console.WriteLine("LoadBalancingSupportedAttribute.Value: {0}",
attribute.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
Vererbungshierarchie
System.Object
System.Attribute
System.EnterpriseServices.LoadBalancingSupportedAttribute
Threadsicherheit
Alle öffentlichen statischen (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.
Plattformen
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
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
LoadBalancingSupportedAttribute-Member
System.EnterpriseServices-Namespace