LoggingActivity.IsEnabled Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
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
- Attributes
Remarks
This function is equivalent to LoggingChannel.IsEnabled(level, keywords).