日期:2014-05-17 浏览次数:20360 次
Dictionary<string, string> result = new Dictionary<string, string>();
DirectoryEntry root = new DirectoryEntry("IIS://localhost/W3SVC");
foreach (DirectoryEntry e in root.Children) {
result[e.SchemaClassName] = e.SchemaClassName;
}