获取 IIS 插件列表(如 WebDav)

Get the IIS plugins list (such as WebDav)

如何在我的 C# 应用程序中获取 IIS 插件列表(例如 WebDav)?

谢谢。

您需要仔细定义什么是 IIS "plugins" 您关心的是三种类型,

  1. IIS 模块,您可以从 applicationHost.config.
  2. 中阅读
  3. IIS 管理器模块,您可以阅读 administration.config
  4. IIS components/features 与 CBS 关联。它控制启用哪些 IIS 功能或角色服务。为此,您需要查看 Windows CBS 文档。