Share via


EventTrackingEnabledAttribute Konstruktory

Definice

Inicializuje novou instanci EventTrackingEnabledAttribute třídy.

Přetížení

EventTrackingEnabledAttribute()

Inicializuje novou instanci EventTrackingEnabledAttribute třídy a povolí sledování událostí.

EventTrackingEnabledAttribute(Boolean)

Inicializuje novou instanci EventTrackingEnabledAttribute třídy, volitelně zakáže sledování událostí.

EventTrackingEnabledAttribute()

Inicializuje novou instanci EventTrackingEnabledAttribute třídy a povolí sledování událostí.

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

Příklady

Následující příklad kódu vytvoří nový EventTrackingEnabledAttribute.

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

Poznámky

Konstruktor bez parametrů umožňuje sledování událostí.

Platí pro

EventTrackingEnabledAttribute(Boolean)

Inicializuje novou instanci EventTrackingEnabledAttribute třídy, volitelně zakáže sledování událostí.

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

Parametry

val
Boolean

truepovolit sledování událostí; v opačném případě . false

Příklady

Následující příklad kódu vytvoří nový EventTrackingEnabledAttribute.

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

Platí pro