如何查询具有给定事件类型的事件ID详细信息 [英] How to Query for an event id details with a given event type
本文介绍了如何查询具有给定事件类型的事件ID详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将事件类型传递为错误".我正在从
获得此价值
I am passing the event type as "Error". i am getting this value from
string str = "Application";
System.Diagnostics.EventLog eventLogApp = new System.Diagnostics.EventLog(str);
从这里我得到事件类型.但我想读取所有事件ID.
问候,
basha
From here i am getting the event types. but i want to read all the event id .
Regards,
basha
推荐答案
使用EventLogEntryCollection.请参见此处 [ ^ ].
use EventLogEntryCollection. see here[^].
这篇关于如何查询具有给定事件类型的事件ID详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文