本文介绍了在事件查看器中为Metro应用记录事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI, 对于我的Metro应用,我想在事件查看器中记录一个事件.就像在按钮单击事件中,我想引发一个错误,并且必须在事件查看器中记录此错误.由于"eventlog"类在Windows 8中不可用,我该怎么办?
For my metro app, I want to log an event in event viewer. It is like in the button click event I want to throw an error and this error has to be logged in event viewer..As the "eventlog" class is not available in windows 8.., how should I do it?? can I get the code for that.
推荐答案基于以下内容,它仍然存在于Windows 8中.在这里,请看:MSDN:EventLog类 [ ^ ] Windows 8中也存在事件查看器: wwwputerperformance.co.uk/win8/windows8-system-event-log.htm [ ^ ] Well, based on the following, it still exists in Windows 8. Here, look: MSDN: EventLog Class[^] Event Viewer too exists in Windows 8: wwwputerperformance.co.uk/win8/windows8-system-event-log.htm[^]
更多推荐
在事件查看器中为Metro应用记录事件
发布评论