EventTrackingEnabledAttribute クラス
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)

<AttributeUsageAttribute(AttributeTargets.Class, Inherited:=True)> _ <ComVisibleAttribute(False)> _ Public NotInheritable Class EventTrackingEnabledAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)] [ComVisibleAttribute(false)] public sealed class EventTrackingEnabledAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, Inherited=true)] [ComVisibleAttribute(false)] public ref class EventTrackingEnabledAttribute sealed : public Attribute


EventTrackingEnabledAttribute 型の使用方法のコード例を次に示します。
Imports System Imports System.EnterpriseServices Imports System.Reflection ' References: ' System.EnterpriseServices <EventTrackingEnabled()> _ Public Class EventTrackingEnabledAttribute_Ctor Inherits ServicedComponent End Class 'EventTrackingEnabledAttribute_Ctor <EventTrackingEnabled(False)> _ Public Class EventTrackingEnabledAttribute_Ctor_Bool Inherits ServicedComponent End Class 'EventTrackingEnabledAttribute_Ctor_Bool <EventTrackingEnabled(False)> _ Public Class EventTrackingEnabledAttribute_Value Inherits ServicedComponent Public Sub ValueExample() ' Get the EventTrackingEnabledAttribute applied to the class. Dim attribute As EventTrackingEnabledAttribute = CType(Attribute.GetCustomAttribute(Me.GetType(), GetType(EventTrackingEnabledAttribute), False), EventTrackingEnabledAttribute) ' Display the value of the attribute's Value property. MsgBox("EventTrackingEnabledAttribute.Value: " & attribute.Value) End Sub 'ValueExample End Class 'EventTrackingEnabledAttribute_Value
using System; using System.EnterpriseServices; using System.Reflection; // References: // System.EnterpriseServices [EventTrackingEnabled] public class EventTrackingEnabledAttribute_Ctor : ServicedComponent { } [EventTrackingEnabled(false)] public class EventTrackingEnabledAttribute_Ctor_Bool : ServicedComponent { } [EventTrackingEnabled(false)] public class EventTrackingEnabledAttribute_Value : ServicedComponent { public void ValueExample() { // Get the EventTrackingEnabledAttribute applied to the class. EventTrackingEnabledAttribute attribute = (EventTrackingEnabledAttribute)Attribute.GetCustomAttribute( this.GetType(), typeof(EventTrackingEnabledAttribute), false); // Display the value of the attribute's Value property. Console.WriteLine("EventTrackingEnabledAttribute.Value: {0}", attribute.Value); } }
import System.*; import System.EnterpriseServices.*; import System.Reflection.*; // References: // System.EnterpriseServices /** @attribute EventTrackingEnabled() */ public class EventTrackingEnabledAttribute_Ctor extends ServicedComponent { } //EventTrackingEnabledAttribute_Ctor /** @attribute EventTrackingEnabled(false) */ public class EventTrackingEnabledAttribute_Ctor_Bool extends ServicedComponent { } //EventTrackingEnabledAttribute_Ctor_Bool /** @attribute EventTrackingEnabled(false) */ public class EventTrackingEnabledAttribute_Value extends ServicedComponent { public void ValueExample() { // Get the EventTrackingEnabledAttribute applied to the class. EventTrackingEnabledAttribute attribute = (EventTrackingEnabledAttribute)(Attribute.GetCustomAttribute( this.GetType(), EventTrackingEnabledAttribute.class.ToType() , false)); // Display the value of the attribute's Value property. Console.WriteLine("EventTrackingEnabledAttribute.Value: {0}", System.Convert.ToString(attribute.get_Value())); } //ValueExample } //EventTrackingEnabledAttribute_Value

System.Attribute
System.EnterpriseServices.EventTrackingEnabledAttribute


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- EventTrackingEnabledAttribute クラスのページへのリンク