IISRSTALib.IisServiceControlClass i = new IISRSTALib.IisServiceControlClass();
    i.Reboot(10,1);

果然重启了。我晕。。

i.Stop();
i.Kill();

都可以。。

还有一个方法.i.Start()....都停止了。。还能启动么?郁闷。

相关文章:

  • 2021-11-18
  • 2021-07-20
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-20
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2021-12-02
相关资源
相似解决方案