EventTrackingEnabledAttribute 생성자

정의

EventTrackingEnabledAttribute 클래스의 새 인스턴스를 초기화합니다.

오버로드

EventTrackingEnabledAttribute()

이벤트 추적을 활성화하여 EventTrackingEnabledAttribute 클래스의 새 인스턴스를 초기화합니다.

EventTrackingEnabledAttribute(Boolean)

선택적으로 이벤트 추적을 비활성화하여 EventTrackingEnabledAttribute 클래스의 새 인스턴스를 초기화합니다.

EventTrackingEnabledAttribute()

이벤트 추적을 활성화하여 EventTrackingEnabledAttribute 클래스의 새 인스턴스를 초기화합니다.

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

예제

다음 코드 예제에서는 새 EventTrackingEnabledAttribute합니다.

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

설명

매개 변수가 없는 생성자는 이벤트 추적을 사용하도록 설정합니다.

적용 대상

EventTrackingEnabledAttribute(Boolean)

선택적으로 이벤트 추적을 비활성화하여 EventTrackingEnabledAttribute 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

val
Boolean

이벤트 추적을 활성화하면 true이고, 그렇지 않으면 false입니다.

예제

다음 코드 예제에서는 새 EventTrackingEnabledAttribute합니다.

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

적용 대상