【问题标题】:How to get the name and status of all IIS application pools in C#?如何在 C# 中获取所有 IIS 应用程序池的名称和状态?
【发布时间】:2016-06-06 04:59:18
【问题描述】:

我想在 IIS 中捕获所有应用程序池名称及其状态。

计划开发用于获取 IIS 应用程序池名称及其状态(即运行或停止)的 Windows 服务。我怎样才能做到这一点?

如果有,请提供示例。 感谢任何帮助。 谢谢..!

【问题讨论】:

    标签: c# iis iis-7 windows-services


    【解决方案1】:

    Enumerating Application Pools in IIS 可能重复。

    DirectoryEntries appPools = new DirectoryEntry("IIS://localhost/W3SVC/AppPools").Children;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-20
      • 2020-03-16
      • 1970-01-01
      • 1970-01-01
      • 2019-06-15
      • 2011-01-29
      • 1970-01-01
      • 2014-10-29
      相关资源
      最近更新 更多