LoadBalancingSupportedAttribute クラス
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文
<ComVisibleAttribute(False)> _ <AttributeUsageAttribute(AttributeTargets.Class, Inherited:=True)> _ Public NotInheritable Class LoadBalancingSupportedAttribute Inherits Attribute
[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
LoadBalancingSupportedAttribute 型の使用方法のコード例を次に示します。
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
System.Attribute
System.EnterpriseServices.LoadBalancingSupportedAttribute
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- LoadBalancingSupportedAttribute クラスのページへのリンク