如何在C#中编写exportlogandmessages的查询? [英] How to write query for exportlogandmessages in C#?

查看:152
本文介绍了如何在C#中编写exportlogandmessages的查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

i正在使用ExportLogAndMessages函数处理wpf应用程序和这个im exportin evtx文件。



并且它正在获取所有的数据,但现在我只想在选定的时间段之间获取事件,所以请告诉我如何编写查询以获取在特定时间段内创建的事件。

TIA



我尝试过:



以下是我获取所有evtx文件的代码



Hi all,
i am working on wpf application and in this im exportin evtx files using ExportLogAndMessages function.

and it is fetching all the data but now i want to fetch the events only between of selected time period so please tell me how to write query to get event which are created in particular time span.
TIA

What I have tried:

below is my code for fetching all evtx files

logsession.ExportLogAndMessages(LogName, PathType.LogName, "*", subfolderpath, false, CultureInfo.CurrentCulture);





如何为选定的时间跨度编写查询。



how to write query for selected time span.

推荐答案

如何:查询事件 [ ^ ]。


这篇关于如何在C#中编写exportlogandmessages的查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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