Dela via


LoggingChannel.IsEnabled Method

Definition

Overloads

IsEnabled()

Indicates whether at least one session is listening for events from the channel.

IsEnabled(LoggingLevel)

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

IsEnabled(LoggingLevel, Int64)

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

IsEnabled()

Indicates whether at least one session is listening for events from the channel.

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, and otherwise false.

Implements

Attributes

Remarks

This property is functionally equivalent to Enabled

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.

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, and otherwise false.

Implements

Attributes

Remarks

This property is equivalent to channel.Enabled && channel.Level <= 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 this channel.

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, 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

See also

Applies to