草庐IT

myEventLogEntryCollection

全部标签

C# 管理窗口事件

我想使用C#从Windows事件日志中删除一个事件。谁能指出我如何实现这一目标的正确方向? 最佳答案 简单:).但是删除看起来像从数组中删除项目,您需要复制所有数组,除了您需要删除的项目。有一个例子,如何“从日志中删除项目索引为非偶数的每个项目”。usingSystem;usingSystem.Collections;usingSystem.Diagnostics;usingSystem.Threading;classEventLogEntryCollection_Item{//////Printsall.//////Myevent