Microsoft 开发人员网络 > 论坛主页 > Windows Events > Reading Entries from EventLog in vista
提出问题提出问题
 

已答复Reading Entries from EventLog in vista

  • 2009年7月2日 14:24Cheryl Joseph 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    Hi,

    I want to be able to read the entries in one of the entries in the Microsoft-Windows-GroupPolicy/Operational under Applications and Services log in C#. When I use

    System.Diagnostics.EventLog.Exists("Microsoft-Windows-GroupPolicy/Operational"), to see if the log event exists, it returns false. I've found that to be true for all logs that are nested in sub folders. Is there another way to do this?

    Thanks in advance,
    Cheryl

    • 已移动Jon LangdonMSFT2009年7月28日 3:56 (From:Building Development and Diagnostic Tools for .Net)
    •  

答案

全部回复