C#:在IIS中创建一个WEB站点
2008-06-19 23:42
561 查看
DirectoryEntry 类
DirectoryEntry 类封装 Active Directory 层次结构中的节点或对象。
命名空间:System.DirectoryServices
程序集:System.DirectoryServices(在 system.directoryservices.dll 中)
与 DirectoryEntry 组件关联的类可以与任何 Active Directory 服务提供程序一起使用。当前的一些提供程序包括 Internet 信息服务 (IIS)、轻量目录访问协议 (LDAP)、Novell NetWare 目录服务 (NDS) 和 WinNT。
DirectoryEntry.Invoke 方法
对本机 Active Directory 对象调用方法。
public Object Invoke (
string methodName,
params Object[] args
)
要调用的方法名。
args
Object 对象类型的数组,它包含要调用的方法的参数。
public int CreateWebSite(string webSiteName, string pathToRoot)
public int CreateWebSite(string webSiteName, string pathToRoot, bool createDir)
DirectoryEntry 类封装 Active Directory 层次结构中的节点或对象。
命名空间:System.DirectoryServices
程序集:System.DirectoryServices(在 system.directoryservices.dll 中)
与 DirectoryEntry 组件关联的类可以与任何 Active Directory 服务提供程序一起使用。当前的一些提供程序包括 Internet 信息服务 (IIS)、轻量目录访问协议 (LDAP)、Novell NetWare 目录服务 (NDS) 和 WinNT。
DirectoryEntry.Invoke 方法
对本机 Active Directory 对象调用方法。
public Object Invoke (
string methodName,
params Object[] args
)
参数
methodName要调用的方法名。
args
Object 对象类型的数组,它包含要调用的方法的参数。
返回值
被调用的方法的返回值。public int CreateWebSite(string webSiteName, string pathToRoot)
public int CreateWebSite(string webSiteName, string pathToRoot, bool createDir)
相关文章推荐
- 怎么用C#创建一个虚拟WEB站点
- iis中创建、配置一个web站点,使其可支持asp和php
- 很郁闷。。怎么用C#创建一个虚拟WEB站点?
- C#深入操作IIS技术(创建配置站点和设置IIS Web服务扩展)
- asp在IIS上创建一个web站点
- C# 编程创建 IIS 7 站点
- C#操作IIS站点 Microsoft.Web.Administration.dll
- C#操作IIS站点 Microsoft.Web.Administration.dll
- 利用C#创建 IIS 站点并设置.NET Framework版本为ASP.NET 2.0 的方法(一)
- 使用ASP在IIS创建WEB站点
- C#在IIS中创建站点和虚拟目录(源码下载)
- 【翻译】使用IIS 7.0 PowerShell 创建web站点,Web应用,虚拟路径和应用程序池
- 利用C#创建 IIS 站点并设置.NET Framework版本为ASP.NET 2.0 的方法(转)
- 【转】利用C#创建 IIS 站点并设置.NET Framework版本为ASP.NET 2.0 的方法(二) 转自孟子E章
- 利用C#创建 IIS 站点并设置.NET Framework版本为ASP.NET 2.0 的方法
- 【转】 VS2005 ASP.NET2.0安装项目的制作(包括数据库创建、站点创建、IIS属性修改、Web.Config文件修改)
- 实验:IIS虚拟主机实现一个ip一个端口多个Web站点
- 利用C#创建 IIS 站点并设置.NET Framework版本为ASP.NET 2.0 的方法
- 使用ASP在IIS创建WEB站点的函数
- 【翻译】使用IIS 7.0 PowerShell 创建web站点,Web应用,虚拟路径和应用