EventLogReader.ReadEvent 메서드

정의

이 개체의 이벤트 쿼리에서 반환된 다음 이벤트를 읽습니다.

오버로드

ReadEvent()

이 개체의 이벤트 쿼리에서 반환된 다음 이벤트를 읽습니다.

ReadEvent(TimeSpan)

이 개체의 이벤트 쿼리에서 반환된 다음 이벤트를 읽습니다.

ReadEvent()

Source:
EventLogReader.cs
Source:
EventLogReader.cs
Source:
EventLogReader.cs

이 개체의 이벤트 쿼리에서 반환된 다음 이벤트를 읽습니다.

public:
 System::Diagnostics::Eventing::Reader::EventRecord ^ ReadEvent();
public System.Diagnostics.Eventing.Reader.EventRecord ReadEvent ();
member this.ReadEvent : unit -> System.Diagnostics.Eventing.Reader.EventRecord
Public Function ReadEvent () As EventRecord

반환

EventRecord 개체를 반환합니다.

예제

이 클래스를 사용하는 예제 코드는 방법: 이벤트 쿼리를 참조하세요.

추가 정보

적용 대상

ReadEvent(TimeSpan)

Source:
EventLogReader.cs
Source:
EventLogReader.cs
Source:
EventLogReader.cs

이 개체의 이벤트 쿼리에서 반환된 다음 이벤트를 읽습니다.

public:
 System::Diagnostics::Eventing::Reader::EventRecord ^ ReadEvent(TimeSpan timeout);
public System.Diagnostics.Eventing.Reader.EventRecord ReadEvent (TimeSpan timeout);
[System.Security.SecurityCritical]
public System.Diagnostics.Eventing.Reader.EventRecord ReadEvent (TimeSpan timeout);
member this.ReadEvent : TimeSpan -> System.Diagnostics.Eventing.Reader.EventRecord
[<System.Security.SecurityCritical>]
member this.ReadEvent : TimeSpan -> System.Diagnostics.Eventing.Reader.EventRecord
Public Function ReadEvent (timeout As TimeSpan) As EventRecord

매개 변수

timeout
TimeSpan

작업을 취소하기 전에 읽기 작업이 실행될 수 있는 최대 시간입니다.

반환

EventRecord 개체를 반환합니다.

특성

추가 정보

적용 대상