EventKeywords EventKeywords EventKeywords EventKeywords Enum

Definition

Defines the standard keywords that apply to events.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum class EventKeywords
[System.Flags]
public enum EventKeywords
type EventKeywords = 
Public Enum EventKeywords
Inheritance
EventKeywordsEventKeywordsEventKeywordsEventKeywords
Attributes

Fields

All All All All -1

All the bits are set to 1, representing every possible group of events.

AuditFailure AuditFailure AuditFailure AuditFailure 4503599627370496

Attached to all failed security audit events. Use this keyword only for events in the security log.

AuditSuccess AuditSuccess AuditSuccess AuditSuccess 9007199254740992

Attached to all successful security audit events. Use this keyword only for events in the security log.

CorrelationHint CorrelationHint CorrelationHint CorrelationHint 4503599627370496

Attached to transfer events where the related activity ID (correlation ID) is a computed value and is not guaranteed to be unique (that is, it is not a real GUID).

EventLogClassic EventLogClassic EventLogClassic EventLogClassic 36028797018963968

Attached to events that are raised by using the RaiseEvent function.

MicrosoftTelemetry MicrosoftTelemetry MicrosoftTelemetry MicrosoftTelemetry 562949953421312

Attached to all Microsoft telemetry events.

None None None None 0

No filtering on keywords is performed when the event is published.

Sqm Sqm Sqm Sqm 2251799813685248

Attached to all Service Quality Mechanism (SQM) events.

WdiContext WdiContext WdiContext WdiContext 562949953421312

Attached to all Windows Diagnostics Infrastructure (WDI) context events.

WdiDiagnostic WdiDiagnostic WdiDiagnostic WdiDiagnostic 1125899906842624

Attached to all Windows Diagnostics Infrastructure (WDI) diagnostic events.

Examples

The following example shows how to use the EventKeywords class to redefine event keywords. This code example is part of a larger example provided for the EventSource class.

public class Keywords
{
    public const EventKeywords Page = (EventKeywords)1;
    public const EventKeywords DataBase = (EventKeywords)2;
    public const EventKeywords Diagnostic = (EventKeywords)4;
    public const EventKeywords Perf = (EventKeywords)8;
}
Public Class Keywords
    Public Const Page As EventKeywords = CType(1, EventKeywords)
    Public Const DataBase As EventKeywords = CType(2, EventKeywords)
    Public Const Diagnostic As EventKeywords = CType(4, EventKeywords)
    Public Const Perf As EventKeywords = CType(8, EventKeywords)
End Class

Remarks

You can customize the meaning of a keyword by assigning different names to the flags.

Applies to