C# 管理窗口事件 [英] C# Manage windows events

查看:25
本文介绍了C# 管理窗口事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 C# 从 Windows 事件日志中删除一个事件.

I would like to delete an event from the Windows event log using C#.

谁能指出我如何实现这一目标的正确方向?

Can anyone point me in the right direction of how to achieve this?

推荐答案

我不相信您可以从事件日志中删除一个特定的事件.要么全有要么全无.如果你想摆脱一个,你必须清除整个日志.

I don't believe you can delete one specific event from the eventlog. It's all or nothing. If you want to get rid of one, you have to clear the whole log.

你唯一能做的就是清除日志.嗯,好吧,你可以从电脑上删除整个日志,如果不是安全、应用程序或系统,但你绝对不能删除一个条目.

The only thing you can do is Clear the log. Well, okay, you can delete the entire log from the computer, if it's not Security, Application, or System, but you definitely can't remove one entry.

这篇关于C# 管理窗口事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆