Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EventKeywords Enumeration

.NET Framework 4.5

Defines the standard keywords that apply to events.

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

Namespace:  System.Diagnostics.Tracing
Assembly:  mscorlib (in mscorlib.dll)

[FlagsAttribute]
public enum EventKeywords

Member nameDescription
Supported in .NET for Windows Store appsAuditFailureAttached to all failed security audit events. Use this keyword only for events in the security log.
Supported in .NET for Windows Store appsAuditSuccessAttached to all successful security audit events. Use this keyword only for events in the security log.
Supported in .NET for Windows Store appsCorrelationHintAttached 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).
Supported in .NET for Windows Store appsEventLogClassicAttached to events that are raised by using the RaiseEvent function.
Supported in .NET for Windows Store appsNoneNo filtering on keywords is performed when the event is published.
Supported in .NET for Windows Store appsSqmAttached to all Service Quality Mechanism (SQM) events.
Supported in .NET for Windows Store appsWdiContextAttached to all Windows Diagnostics Infrastructure (WDI) context events.
Supported in .NET for Windows Store appsWdiDiagnosticAttached to all Windows Diagnostics Infrastructure (WDI) diagnostic events.

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

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;
}

.NET Framework

Supported in: 4.5

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Windows Phone 8.1, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft