EventKeywords 列挙型

定義

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

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

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

フィールド

名前 説明
All -1

すべてのビットは 1 に設定され、可能なすべてのイベント グループを表します。

None 0

イベントが発行されると、キーワードに対するフィルター処理は実行されません。

MicrosoftTelemetry 562949953421312

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

WdiContext 562949953421312

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

WdiDiagnostic 1125899906842624

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

Sqm 2251799813685248

すべてのサービス品質メカニズム (SQM) イベントにアタッチされます。

AuditFailure 4503599627370496

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

CorrelationHint 4503599627370496

関連するアクティビティ ID (関連付け ID) が計算値であり、一意であることが保証されていない転送イベントにアタッチされます (つまり、実際の GUID ではありません)。

AuditSuccess 9007199254740992

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

EventLogClassic 36028797018963968

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

次の例は、 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

注釈

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

適用対象