您的位置:首页 > 编程语言 > C#

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

)

参数

methodName

要调用的方法名。

args

Object 对象类型的数组,它包含要调用的方法的参数。

返回值

被调用的方法的返回值。

public int CreateWebSite(string webSiteName, string pathToRoot)

public int CreateWebSite(string webSiteName, string pathToRoot, bool createDir)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: