首先需要引用using System.DirectoryServices;以下为创建IIS站点和虚拟目录的主要类代码(全部源码下载)< p> } 以下为调用代码 //创建站点DirectoryEntry rootEntry = CreateNewSite("天科行业主管平台", strDirectoryPath + "WebPage");if (rootEntry != null)} 全部源码下载 相关文章: 2022-02-07 2021-07-01 2022-01-16 2022-01-11 2022-12-23 2022-02-07 2021-10-29