EventKeywords Enum
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.
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
- Attributes
Fields
All | -1 | All the bits are set to 1, representing every possible group of events. |
AuditFailure | 4503599627370496 | Attached to all failed security audit events. Use this keyword only for events in the security log. |
AuditSuccess | 9007199254740992 | Attached to all successful 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). |
EventLogClassic | 36028797018963968 | Attached to events that are raised by using the |
MicrosoftTelemetry | 562949953421312 | Attached to all Microsoft telemetry events. |
None | 0 | No filtering on keywords is performed when the event is published. |
Sqm | 2251799813685248 | Attached to all Service Quality Mechanism (SQM) events. |
WdiContext | 562949953421312 | Attached to all Windows Diagnostics Infrastructure (WDI) context events. |
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 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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기