ערוך

שתף באמצעות


EventTrackingEnabledAttribute Constructors

Definition

Initializes a new instance of the EventTrackingEnabledAttribute class.

Overloads

EventTrackingEnabledAttribute()

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

EventTrackingEnabledAttribute(Boolean)

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

EventTrackingEnabledAttribute()

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

public:
 EventTrackingEnabledAttribute();
public EventTrackingEnabledAttribute ();
Public Sub New ()

Examples

The following code example creates a new EventTrackingEnabledAttribute.

[EventTrackingEnabled]
public class EventTrackingEnabledAttribute_Ctor : ServicedComponent
{
}
<EventTrackingEnabled()>  _
Public Class EventTrackingEnabledAttribute_Ctor
    Inherits ServicedComponent
End Class

Remarks

The parameterless constructor enables event tracking.

Applies to

EventTrackingEnabledAttribute(Boolean)

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

public:
 EventTrackingEnabledAttribute(bool val);
public EventTrackingEnabledAttribute (bool val);
new System.EnterpriseServices.EventTrackingEnabledAttribute : bool -> System.EnterpriseServices.EventTrackingEnabledAttribute
Public Sub New (val As Boolean)

Parameters

val
Boolean

true to enable event tracking; otherwise, false.

Examples

The following code example creates a new EventTrackingEnabledAttribute.

[EventTrackingEnabled(false)]
public class EventTrackingEnabledAttribute_Ctor_Bool : ServicedComponent
{
}
<EventTrackingEnabled(False)>  _
Public Class EventTrackingEnabledAttribute_Ctor_Bool
    Inherits ServicedComponent
End Class

Applies to