Constructor
Şöyle yaparız.
Şöyle yaparız.
string query = "*[System/EventID=1149]";
EventLogQuery eventquery = new EventLogQuery("Application",
PathType.LogName,query);
try
{
EventLogReader logReader = new EventLogReader(eventquery);
for(EventRecord eventDetail = logReader.ReadEvent();eventDetail!=null;
eventDetail=logReader.ReadEvent())
{
...
}
}
catch(EventLogNotFoundException e)
{...}
Hiç yorum yok:
Yorum Gönder