honghu3000

1,在事件日志组件上有一个事件:EntryWriten
2,当一条新的日志写入事件日志时,该事件被激发

此控制台应用程序监控,当日志名称为myNewLog 源为MySource的事件日志被写入时,输出另一个程序所写入的消息内容.接收这个事件
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
using System.Diagnostics;
namespace ConsoleApplication1
{

阅读全文
类别:学习笔记 查看评论
文章来源:http://hi.baidu.com/honghu3000/blog/item/1bb059ceead4c30492457e19.html

分类:

技术点:

相关文章:

  • 2021-07-13
  • 2020-06-03
  • 2022-12-23
  • 2022-02-18
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2021-04-29
相关资源
相似解决方案