在事件查看器中为Metro应用记录事件

编程入门 行业动态 更新时间:2024-10-28 12:27:49
本文介绍了在事件查看器中为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应用记录事件

本文发布于:2023-11-15 17:32:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1596529.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:事件   中为   查看器   Metro

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!