次の方法で共有


EventLogWatcher コンストラクター

定義

EventLogWatcher クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
EventLogWatcher(EventLogQuery)

イベント クエリを指定して、 EventLogWatcher クラスの新しいインスタンスを初期化します。

EventLogWatcher(String)

イベント ログの名前またはパスを指定して、 EventLogWatcher クラスの新しいインスタンスを初期化します。

EventLogWatcher(EventLogQuery, EventBookmark)

イベント クエリと、クエリの開始位置として使用されるブックマークを指定して、 EventLogWatcher クラスの新しいインスタンスを初期化します。

EventLogWatcher(EventLogQuery, EventBookmark, Boolean)

イベント クエリ、クエリの開始位置として使用されるブックマーク、およびイベント ログに既に存在するイベントを読み取るかどうかを決定するブール値を指定して、 EventLogWatcher クラスの新しいインスタンスを初期化します。

EventLogWatcher(EventLogQuery)

ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs

イベント クエリを指定して、 EventLogWatcher クラスの新しいインスタンスを初期化します。

public:
 EventLogWatcher(System::Diagnostics::Eventing::Reader::EventLogQuery ^ eventQuery);
public EventLogWatcher(System.Diagnostics.Eventing.Reader.EventLogQuery eventQuery);
new System.Diagnostics.Eventing.Reader.EventLogWatcher : System.Diagnostics.Eventing.Reader.EventLogQuery -> System.Diagnostics.Eventing.Reader.EventLogWatcher
Public Sub New (eventQuery As EventLogQuery)

パラメーター

eventQuery
EventLogQuery

イベント サブスクリプションのクエリを指定します。 クエリで表された条件に一致するイベントがログに記録されると、 EventRecordWritten イベントが発生します。

適用対象

EventLogWatcher(String)

ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs

イベント ログの名前またはパスを指定して、 EventLogWatcher クラスの新しいインスタンスを初期化します。

public:
 EventLogWatcher(System::String ^ path);
public EventLogWatcher(string path);
new System.Diagnostics.Eventing.Reader.EventLogWatcher : string -> System.Diagnostics.Eventing.Reader.EventLogWatcher
Public Sub New (path As String)

パラメーター

path
String

イベントのイベント ログ モニターのパスまたは名前。 イベントがこのイベント ログに記録されると、 EventRecordWritten イベントが発生します。

適用対象

EventLogWatcher(EventLogQuery, EventBookmark)

ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs

イベント クエリと、クエリの開始位置として使用されるブックマークを指定して、 EventLogWatcher クラスの新しいインスタンスを初期化します。

public:
 EventLogWatcher(System::Diagnostics::Eventing::Reader::EventLogQuery ^ eventQuery, System::Diagnostics::Eventing::Reader::EventBookmark ^ bookmark);
public EventLogWatcher(System.Diagnostics.Eventing.Reader.EventLogQuery eventQuery, System.Diagnostics.Eventing.Reader.EventBookmark bookmark);
new System.Diagnostics.Eventing.Reader.EventLogWatcher : System.Diagnostics.Eventing.Reader.EventLogQuery * System.Diagnostics.Eventing.Reader.EventBookmark -> System.Diagnostics.Eventing.Reader.EventLogWatcher
Public Sub New (eventQuery As EventLogQuery, bookmark As EventBookmark)

パラメーター

eventQuery
EventLogQuery

イベント サブスクリプションのクエリを指定します。 クエリで表された条件に一致するイベントがログに記録されると、 EventRecordWritten イベントが発生します。

bookmark
EventBookmark

イベント ログまたはイベントストリームの開始位置として使用されるブックマーク (プレースホルダー)。 ブックマーク イベントの後にログに記録されたイベントのみがクエリによって返されます。

適用対象

EventLogWatcher(EventLogQuery, EventBookmark, Boolean)

ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs
ソース:
EventLogWatcher.cs

イベント クエリ、クエリの開始位置として使用されるブックマーク、およびイベント ログに既に存在するイベントを読み取るかどうかを決定するブール値を指定して、 EventLogWatcher クラスの新しいインスタンスを初期化します。

public:
 EventLogWatcher(System::Diagnostics::Eventing::Reader::EventLogQuery ^ eventQuery, System::Diagnostics::Eventing::Reader::EventBookmark ^ bookmark, bool readExistingEvents);
public EventLogWatcher(System.Diagnostics.Eventing.Reader.EventLogQuery eventQuery, System.Diagnostics.Eventing.Reader.EventBookmark bookmark, bool readExistingEvents);
new System.Diagnostics.Eventing.Reader.EventLogWatcher : System.Diagnostics.Eventing.Reader.EventLogQuery * System.Diagnostics.Eventing.Reader.EventBookmark * bool -> System.Diagnostics.Eventing.Reader.EventLogWatcher
Public Sub New (eventQuery As EventLogQuery, bookmark As EventBookmark, readExistingEvents As Boolean)

パラメーター

eventQuery
EventLogQuery

イベント サブスクリプションのクエリを指定します。 クエリで表された条件に一致するイベントがログに記録されると、 EventRecordWritten イベントが発生します。

bookmark
EventBookmark

イベント ログまたはイベントストリームの開始位置として使用されるブックマーク (プレースホルダー)。 ブックマーク イベントの後にログに記録されたイベントのみがクエリによって返されます。

readExistingEvents
Boolean

イベント ログに既に存在するイベントを読み取るかどうかを決定するブール値。 この値が true場合、既存のイベントが読み取られ、この値が false場合、既存のイベントは読み取りません。

適用対象