EventTrackingEnabledAttribute Constructor (Boolean)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the EventTrackingEnabledAttribute class, optionally disabling event tracking.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public EventTrackingEnabledAttribute(
	bool val
)

Parameters

val
Type: System.Boolean

true to enable event tracking; otherwise, false.

The following code example creates a new EventTrackingEnabledAttribute.

[EventTrackingEnabled(false)]
public class EventTrackingEnabledAttribute_Ctor_Bool : ServicedComponent
{
}

.NET Framework
Available since 1.1
Return to top
Show: