EventKeywords 列挙型

定義

イベントに適用される標準キーワードを定義します。

この列挙体は、メンバー値のビットごとの組み合わせをサポートしています。

public enum class EventKeywords
[System.Flags]
public enum EventKeywords
[<System.Flags>]
type EventKeywords = 
Public Enum EventKeywords
継承
EventKeywords
属性

フィールド

All -1

すべてのビットは 1 に設定されます。これは、考えられるすべてのイベント グループを表します。

AuditFailure 4503599627370496

失敗したすべてのセキュリティ監査イベントにアタッチされます。 このキーワードは、セキュリティ ログ内のイベントにのみ使用してください。

AuditSuccess 9007199254740992

成功したすべてのセキュリティ監査イベントにアタッチされます。 このキーワードは、セキュリティ ログ内のイベントにのみ使用してください。

CorrelationHint 4503599627370496

関連アクティビティ ID (相関 ID) が算出された値で、一意であるとは限らない (実際の GUID ではない) 転送イベントにアタッチされます。

EventLogClassic 36028797018963968

RaiseEvent 関数を使用して発生するイベントにアタッチされます。

MicrosoftTelemetry 562949953421312

すべての Microsoft テレメトリ イベントにアタッチされます。

None 0

イベントの発行時にキーワードに関するフィルター処理が行われません。

Sqm 2251799813685248

すべての SQM (Service Quality Mechanism) イベントにアタッチされます。

WdiContext 562949953421312

すべての Windows 診断インフラストラクチャ (WDI) コンテキスト イベントにアタッチされます。

WdiDiagnostic 1125899906842624

すべての Windows 診断インフラストラクチャ (WDI) 診断イベントにアタッチされます。

次の例は、クラスを使用 EventKeywords してイベント キーワードを再定義する方法を示しています。 このコード例は、EventSource クラスのために提供されている大規模な例の一部です。

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

注釈

フラグに異なる名前を割り当てることで、キーワードの意味をカスタマイズできます。

適用対象