LoggingActivity.IsEnabled Method

Definition

Overloads

IsEnabled()

Indicates whether at least one session is listening for events from the channel associated with this activity.

IsEnabled(LoggingLevel)

Indicates whether at least one session is listening for events with the specified event severity level from the channel associated with this activity.

IsEnabled(LoggingLevel, Int64)

Indicates whether at least one session is listening for events with the specified level and keywords from the channel associated with this activity.

IsEnabled()

Indicates whether at least one session is listening for events from the channel associated with this activity.

public:
 virtual bool IsEnabled() = IsEnabled;
/// [Windows.Foundation.Metadata.Overload("IsEnabled")]
bool IsEnabled();
[Windows.Foundation.Metadata.Overload("IsEnabled")]
public bool IsEnabled();
function isEnabled()
Public Function IsEnabled () As Boolean

Returns

Boolean

bool

Returns true if at least one session is listening for events from the channel associated with this activity, and otherwise false.

Implements

Attributes

See also

Applies to

IsEnabled(LoggingLevel)

Indicates whether at least one session is listening for events with the specified event severity level from the channel associated with this activity.

public:
 virtual bool IsEnabled(LoggingLevel level) = IsEnabled;
/// [Windows.Foundation.Metadata.Overload("IsEnabledWithLevel")]
bool IsEnabled(LoggingLevel const& level);
[Windows.Foundation.Metadata.Overload("IsEnabledWithLevel")]
public bool IsEnabled(LoggingLevel level);
function isEnabled(level)
Public Function IsEnabled (level As LoggingLevel) As Boolean

Parameters

level
LoggingLevel

The event severity level.

Returns

Boolean

bool

Returns true if at least one session is listening for events with the specified level from the channel associated with this activity, and otherwise false.

Implements

Attributes

Remarks

This function is equivalent to LoggingChannel.IsEnabled(level).

See also

Applies to

IsEnabled(LoggingLevel, Int64)

Indicates whether at least one session is listening for events with the specified level and keywords from the channel associated with this activity.

public:
 virtual bool IsEnabled(LoggingLevel level, long long keywords) = IsEnabled;
/// [Windows.Foundation.Metadata.Overload("IsEnabledWithLevelAndKeywords")]
bool IsEnabled(LoggingLevel const& level, long const& keywords);
[Windows.Foundation.Metadata.Overload("IsEnabledWithLevelAndKeywords")]
public bool IsEnabled(LoggingLevel level, long keywords);
function isEnabled(level, keywords)
Public Function IsEnabled (level As LoggingLevel, keywords As Long) As Boolean

Parameters

level
LoggingLevel

The event severity level.

keywords
Int64

long long

long

The keywords. Each bit of the keywords value represents an event category.

Returns

Boolean

bool

Returns true if at least one session is listening for events with the specified level and keywords from the channel associated with this activity, and otherwise false.

Implements

M:Windows.Foundation.Diagnostics.ILoggingTarget.IsEnabled(Windows.Foundation.Diagnostics.LoggingLevel,System.Int64) M:Windows.Foundation.Diagnostics.ILoggingTarget.IsEnabled(Windows.Foundation.Diagnostics.LoggingLevel,long long) M:Windows.Foundation.Diagnostics.ILoggingTarget.IsEnabled(Windows.Foundation.Diagnostics.LoggingLevel,long)
Attributes

Remarks

This function is equivalent to LoggingChannel.IsEnabled(level, keywords).

See also

Applies to