以编程方式更改IIS 6/7应用程序池设置 [英] Changing IIS 6/7 Application Pool settings programmatically

查看:88
本文介绍了以编程方式更改IIS 6/7应用程序池设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以编程方式更改IIS应用程序池的设置和属性(例如:Enable 32-Bit Applications设置)?

How can I programmatically change IIS application pools' settings and properties (for example: the Enable 32-Bit Applications setting)?

是否存在有关MSDN或Technet上IIS 6或7的属性的参考指南?

Are there reference guides on properties for IIS 6 or 7 on MSDN or Technet?

推荐答案

尝试 有关尺寸.

DirectoryEntry root = this.GetDirectoryEntry("IIS://" + this.DomainName + "/W3SVC/AppPools");
  if (root == null)
        return null;

List<ApplicationPool> Pools = new List<ApplicationPool>();
...

这篇关于以编程方式更改IIS 6/7应用程序池设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆