EventSource.IsEnabled 메서드

정의

현재 이벤트 소스를 사용할 수 있는지 여부를 확인합니다.

오버로드

IsEnabled()

현재 이벤트 소스를 사용할 수 있는지 여부를 확인합니다.

IsEnabled(EventLevel, EventKeywords)

지정된 수준 및 키워드가 있는 현재 이벤트 소스를 사용할 수 있는지 여부를 확인합니다.

IsEnabled(EventLevel, EventKeywords, EventChannel)

지정된 수준, 키워드 및 채널의 이벤트에 현재 이벤트 소스를 사용할 수 있는지 여부를 결정합니다.

IsEnabled()

Source:
EventSource.cs
Source:
EventSource.cs
Source:
EventSource.cs

현재 이벤트 소스를 사용할 수 있는지 여부를 확인합니다.

public:
 bool IsEnabled();
public bool IsEnabled ();
member this.IsEnabled : unit -> bool
Public Function IsEnabled () As Boolean

반환

현재 이벤트 소스를 사용할 수 있으면 true이고, 그렇지 않으면 false입니다.

적용 대상

IsEnabled(EventLevel, EventKeywords)

Source:
EventSource.cs
Source:
EventSource.cs
Source:
EventSource.cs

지정된 수준 및 키워드가 있는 현재 이벤트 소스를 사용할 수 있는지 여부를 확인합니다.

public:
 bool IsEnabled(System::Diagnostics::Tracing::EventLevel level, System::Diagnostics::Tracing::EventKeywords keywords);
public bool IsEnabled (System.Diagnostics.Tracing.EventLevel level, System.Diagnostics.Tracing.EventKeywords keywords);
member this.IsEnabled : System.Diagnostics.Tracing.EventLevel * System.Diagnostics.Tracing.EventKeywords -> bool
Public Function IsEnabled (level As EventLevel, keywords As EventKeywords) As Boolean

매개 변수

level
EventLevel

이벤트 소스의 수준입니다.

keywords
EventKeywords

이벤트 소스의 키워드입니다.

반환

이벤트 소스를 사용할 수 있으면 true이고, 그렇지 않으면 false입니다.

설명

이 메서드의 결과는 특정 이벤트가 활성 상태인지 여부에 대한 근사값만으로 나타납니다. 이를 통해 로깅이 비활성화된 경우 비용이 많이 드는 계산을 피합니다. 이벤트 소스에는 해당 활동을 결정하는 추가 필터링이 있을 수 있습니다.

적용 대상

IsEnabled(EventLevel, EventKeywords, EventChannel)

Source:
EventSource.cs
Source:
EventSource.cs
Source:
EventSource.cs

지정된 수준, 키워드 및 채널의 이벤트에 현재 이벤트 소스를 사용할 수 있는지 여부를 결정합니다.

public:
 bool IsEnabled(System::Diagnostics::Tracing::EventLevel level, System::Diagnostics::Tracing::EventKeywords keywords, System::Diagnostics::Tracing::EventChannel channel);
public bool IsEnabled (System.Diagnostics.Tracing.EventLevel level, System.Diagnostics.Tracing.EventKeywords keywords, System.Diagnostics.Tracing.EventChannel channel);
member this.IsEnabled : System.Diagnostics.Tracing.EventLevel * System.Diagnostics.Tracing.EventKeywords * System.Diagnostics.Tracing.EventChannel -> bool
Public Function IsEnabled (level As EventLevel, keywords As EventKeywords, channel As EventChannel) As Boolean

매개 변수

level
EventLevel

확인할 이벤트 수준입니다. 해당 수준이 level 이상일 때 사용하도록 고려할 이벤트 소스입니다.

keywords
EventKeywords

확인할 이벤트 키워드입니다.

channel
EventChannel

확인할 이벤트 채널입니다.

반환

지정된 이벤트 수준, 키워드 및 채널에 이벤트 소스를 사용하도록 설정되면 true이고, 그러지 않으면 false입니다.

이 메서드의 결과는 특정 이벤트가 활성 상태인지 여부에 대한 근사값만으로 나타납니다. 이를 통해 로깅이 비활성화된 경우 비용이 많이 드는 계산을 피합니다. 이벤트 소스에는 해당 활동을 결정하는 추가 필터링이 있을 수 있습니다.

설명

여기서

적용 대상