Επεξεργασία

Κοινή χρήση μέσω


EventKeywords Enum

Definition

Defines the standard keywords that apply to events.

This enumeration supports a bitwise combination of its member values.

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

Fields

Name Value Description
All -1

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

None 0

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

MicrosoftTelemetry 562949953421312

Attached to all Microsoft telemetry events.

WdiContext 562949953421312

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

WdiDiagnostic 1125899906842624

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

Sqm 2251799813685248

Attached to all Service Quality Mechanism (SQM) events.

AuditFailure 4503599627370496

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

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).

AuditSuccess 9007199254740992

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

EventLogClassic 36028797018963968

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

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