EventLogWatcher 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
EventLogWatcher 클래스의 새 인스턴스를 초기화합니다.
오버로드
| Name | Description |
|---|---|
| EventLogWatcher(EventLogQuery) |
이벤트 쿼리를 지정하여 클래스의 EventLogWatcher 새 인스턴스를 초기화합니다. |
| EventLogWatcher(String) |
이벤트 로그의 이름 또는 경로를 지정하여 클래스의 EventLogWatcher 새 인스턴스를 초기화합니다. |
| EventLogWatcher(EventLogQuery, EventBookmark) |
이벤트 쿼리 및 쿼리의 EventLogWatcher 시작 위치로 사용되는 책갈피를 지정하여 클래스의 새 인스턴스를 초기화합니다. |
| EventLogWatcher(EventLogQuery, EventBookmark, Boolean) |
이벤트 쿼리, 쿼리의 EventLogWatcher 시작 위치로 사용되는 책갈피 및 이벤트 로그에 이미 있는 이벤트를 읽을지 여부를 결정하는 부울 값을 지정하여 클래스의 새 인스턴스를 초기화합니다. |
EventLogWatcher(EventLogQuery)
이벤트 쿼리를 지정하여 클래스의 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 새 인스턴스를 초기화합니다.
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 시작 위치로 사용되는 책갈피를 지정하여 클래스의 새 인스턴스를 초기화합니다.
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 시작 위치로 사용되는 책갈피 및 이벤트 로그에 이미 있는 이벤트를 읽을지 여부를 결정하는 부울 값을 지정하여 클래스의 새 인스턴스를 초기화합니다.
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면 기존 이벤트를 읽지 않습니다.