FindEntryByEntryType() public static method

지정된 EventLogEntryType(수준)과 같은 EventLogEntry를 검색한다.
public static FindEntryByEntryType ( System.Diagnostics.EventLog eventLog, EventLogEntryType entryType ) : IEnumerable
eventLog System.Diagnostics.EventLog 대상 EventLog 인스턴스
entryType EventLogEntryType 검색할 EventLogEntryType(수준)의 값
return IEnumerable
 public void FindEntryByEntryTypeTest()
 {
     using (var eventLog = EventLogTool.GetEventLog(EventLogName)) {
         DisplayEntries(EventLogTool.FindEntryByEntryType(eventLog, EventLogEntryType.Error),
                        "FindEntryByEntryType");
     }
 }
示例#2
0
 /// <summary>
 /// 지정된 <c>EventLogEntryType</c>(수준)과 같은 <c>EventLogEntry</c>를 검색한다.
 /// </summary>
 /// <param name="entryType">검색할 <c>EventLogEntryType</c>(수준)의 값</param>
 /// <returns>찾은 <c>EventLogEntry</c>의 컬렉션</returns>
 public IEnumerable <EventLogEntry> FindEntryByEntryType(EventLogEntryType entryType)
 {
     return(EventLogTool.FindEntryByEntryType(Log, entryType));
 }