DirectoryEntry root = new DirectoryEntry(@"IIS://localhost/W3SVC");
string PInfo = "";
foreach (string elmentName in root.Properties.PropertyNames)
{
PropertyValueCollection valueCollection = root.Properties[elmentName];
for (int i = ; i < valueCollection.Count; i++)
{
PInfo += elmentName + "[ " + i.ToString() + "] = " + valueCollection[i].ToString() + "\r\n";
}
}

PInfo的结果是:
AccessFlags[ 0]   = 513
AllowKeepAlive[ 0]   = True
AppAllowClientDebug[ 0]   = False
AppAllowDebugging[ 0]   = False
AspAllowOutOfProcComponents[ 0]   = True
AspAllowSessionState[ 0]   = True
AspAppServiceFlags[ 0]   = 0
AspBufferingLimit[ 0]   = 4194304
AspBufferingOn[ 0]   = True
AspCalcLineNumber[ 0]   = True
AspCodepage[ 0]   = 0
AspEnableApplicationRestart[ 0]   = True
AspEnableAspHtmlFallback[ 0]   = False
AspEnableChunkedEncoding[ 0]   = True
AspEnableParentPaths[ 0]   = False
AspEnableTypelibCache[ 0]   = True
AspErrorsToNTLog[ 0]   = False
AspExceptionCatchEnable[ 0]   = True
AspExecuteInMTA[ 0]   = 0
AspKeepSessionIDSecure[ 0]   = 0
AspLCID[ 0]   = 2048
AspLogErrorRequests[ 0]   = True
AspMaxDiskTemplateCacheFiles[ 0]   = 2000
AspMaxRequestEntityAllowed[ 0]   = 204800
AspProcessorThreadMax[ 0]   = 25
AspQueueConnectionTestTime[ 0]   = 3
AspQueueTimeout[ 0]   = -1
AspRequestQueueMax[ 0]   = 3000
AspRunOnEndAnonymously[ 0]   = True
AspScriptEngineCacheMax[ 0]   = 250
AspScriptErrorSentToBrowser[ 0]   = True
AspScriptFileCacheSize[ 0]   = 500
AspScriptTimeout[ 0]   = 90
AspSessionMax[ 0]   = -1
AspSessionTimeout[ 0]   = 20
AspTrackThreadingModel[ 0]   = False
AuthFlags[ 0]   = 1
CacheISAPI[ 0]   = True
CentralBinaryLoggingEnabled[ 0]   = False
CGITimeout[ 0]   = 300
ConnectionTimeout[ 0]   = 120
ContentIndexed[ 0]   = True
DirBrowseFlags[ 0]   = 1073741886
DownlevelAdminInstance[ 0]   = 1
IIs5IsolationModeEnabled[ 0]   = False
LogExtFileFlags[ 0]   = 2199519
LogFilePeriod[ 0]   = 1
LogFileTruncateSize[ 0]   = 20971520
LogInUTF8[ 0]   = False
LogType[ 0]   = 1
MaxConnections[ 0]   = -1
MaxGlobalBandwidth[ 0]   = -1
MinFileBytesPerSec[ 0]   = 240
PasswordChangeFlags[ 0]   = 6
AnonymousUserName[ 0]   = IUSR_SVCTAG-FT9G93X
AnonymousUserPass[ 0]   = UP-aq0|5076u(~
AppPoolId[ 0]   = DefaultAppPool
AspScriptErrorMessage[ 0]   = 处理 URL 时服务器出错。请与系统管理员联系。
AspScriptLanguage[ 0]   = VBScript
AuthChangeURL[ 0]   = /iisadmpwd/achg.asp
AuthExpiredUnsecureURL[ 0]   = /iisadmpwd/aexp3.asp
AuthExpiredURL[ 0]   = /iisadmpwd/aexp.asp
AuthNotifyPwdExpUnsecureURL[ 0]   = /iisadmpwd/anot3.asp
AuthNotifyPwdExpURL[ 0]   = /iisadmpwd/anot.asp
DefaultDoc[ 0]   = index.html,index.htm,Default.aspx,index.aspx,Default.htm,Default.asp
KeyType[ 0]   = IIsWebService
LogOdbcDataSource[ 0]   = HTTPLOG
LogOdbcPassword[ 0]   = sqllog
LogOdbcTableName[ 0]   = InternetLog
LogOdbcUserName[ 0]   = InternetAdmin
LogPluginClsid[ 0]   = {FF160663-DE82-11CF-BC0A-00AA006111E0}
WAMUserName[ 0]   = IWAM_SVCTAG-FT9G93X
WAMUserPass[ 0]   = 0R735F;wQ_/:8Q
AspDiskTemplateCacheDirectory[ 0]   = %windir%\system32\inetsrv\ASP Compiled Templates
LogFileDirectory[ 0]   = C:\WINDOWS\system32\LogFiles
ApplicationDependencies[ 0]   = Active Server Pages;ASP
ApplicationDependencies[ 1]   = Internet 数据连接器;HTTPODBC
ApplicationDependencies[ 2]   = 在服务器端的包含文件;SSINC
ApplicationDependencies[ 3]   = WebDAV;WEBDAV
ApplicationDependencies[ 4]   = ASP.NET v1.1.4322;ASP.NET v1.1.4322
ApplicationDependencies[ 5]   = ASP.NET v4.0.30319;ASP.NET v4.0.30319
ApplicationDependencies[ 6]   = ASP.NET v2.0.50727;ASP.NET v2.0.50727
HttpCustomHeaders[ 0]   = X-Powered-By: ASP.NET
HttpErrors[ 0]   = 400,*,FILE,C:\WINDOWS\help\iisHelp\common\400.htm
HttpErrors[ 1]   = 401,1,FILE,C:\WINDOWS\help\iisHelp\common\401-1.htm
HttpErrors[ 2]   = 401,2,FILE,C:\WINDOWS\help\iisHelp\common\401-2.htm
HttpErrors[ 3]   = 401,3,FILE,C:\WINDOWS\help\iisHelp\common\401-3.htm
HttpErrors[ 4]   = 401,4,FILE,C:\WINDOWS\help\iisHelp\common\401-4.htm
HttpErrors[ 5]   = 401,5,FILE,C:\WINDOWS\help\iisHelp\common\401-5.htm
HttpErrors[ 6]   = 401,7,FILE,C:\WINDOWS\help\iisHelp\common\401-1.htm
HttpErrors[ 7]   = 403,1,FILE,C:\WINDOWS\help\iisHelp\common\403-1.htm
HttpErrors[ 8]   = 403,2,FILE,C:\WINDOWS\help\iisHelp\common\403-2.htm
HttpErrors[ 9]   = 403,3,FILE,C:\WINDOWS\help\iisHelp\common\403-3.htm
HttpErrors[ 10]   = 403,4,FILE,C:\WINDOWS\help\iisHelp\common\403-4.htm
HttpErrors[ 11]   = 403,5,FILE,C:\WINDOWS\help\iisHelp\common\403-5.htm
HttpErrors[ 12]   = 403,6,FILE,C:\WINDOWS\help\iisHelp\common\403-6.htm
HttpErrors[ 13]   = 403,7,FILE,C:\WINDOWS\help\iisHelp\common\403-7.htm
HttpErrors[ 14]   = 403,8,FILE,C:\WINDOWS\help\iisHelp\common\403-8.htm
HttpErrors[ 15]   = 403,9,FILE,C:\WINDOWS\help\iisHelp\common\403-9.htm
HttpErrors[ 16]   = 403,10,FILE,C:\WINDOWS\help\iisHelp\common\403-10.htm
HttpErrors[ 17]   = 403,11,FILE,C:\WINDOWS\help\iisHelp\common\403-11.htm
HttpErrors[ 18]   = 403,12,FILE,C:\WINDOWS\help\iisHelp\common\403-12.htm
HttpErrors[ 19]   = 403,13,FILE,C:\WINDOWS\help\iisHelp\common\403-13.htm
HttpErrors[ 20]   = 403,15,FILE,C:\WINDOWS\help\iisHelp\common\403-15.htm
HttpErrors[ 21]   = 403,16,FILE,C:\WINDOWS\help\iisHelp\common\403-16.htm
HttpErrors[ 22]   = 403,17,FILE,C:\WINDOWS\help\iisHelp\common\403-17.htm
HttpErrors[ 23]   = 403,18,FILE,C:\WINDOWS\help\iisHelp\common\403.htm
HttpErrors[ 24]   = 403,19,FILE,C:\WINDOWS\help\iisHelp\common\403.htm
HttpErrors[ 25]   = 403,20,FILE,C:\WINDOWS\help\iisHelp\common\403-20.htm
HttpErrors[ 26]   = 404,*,FILE,C:\WINDOWS\help\iisHelp\common\404b.htm
HttpErrors[ 27]   = 404,2,FILE,C:\WINDOWS\help\iisHelp\common\404b.htm
HttpErrors[ 28]   = 404,3,FILE,C:\WINDOWS\help\iisHelp\common\404b.htm
HttpErrors[ 29]   = 405,*,FILE,C:\WINDOWS\help\iisHelp\common\405.htm
HttpErrors[ 30]   = 406,*,FILE,C:\WINDOWS\help\iisHelp\common\406.htm
HttpErrors[ 31]   = 407,*,FILE,C:\WINDOWS\help\iisHelp\common\407.htm
HttpErrors[ 32]   = 412,*,FILE,C:\WINDOWS\help\iisHelp\common\412.htm
HttpErrors[ 33]   = 414,*,FILE,C:\WINDOWS\help\iisHelp\common\414.htm
HttpErrors[ 34]   = 415,*,FILE,C:\WINDOWS\help\iisHelp\common\415.htm
HttpErrors[ 35]   = 500,12,FILE,C:\WINDOWS\help\iisHelp\common\500-12.htm
HttpErrors[ 36]   = 500,13,FILE,C:\WINDOWS\help\iisHelp\common\500-13.htm
HttpErrors[ 37]   = 500,15,FILE,C:\WINDOWS\help\iisHelp\common\500-15.htm
HttpErrors[ 38]   = 500,16,FILE,C:\WINDOWS\help\iisHelp\common\500.htm
HttpErrors[ 39]   = 500,17,FILE,C:\WINDOWS\help\iisHelp\common\500.htm
HttpErrors[ 40]   = 500,18,FILE,C:\WINDOWS\help\iisHelp\common\500.htm
HttpErrors[ 41]   = 500,19,FILE,C:\WINDOWS\help\iisHelp\common\500.htm
InProcessIsapiApps[ 0]   = C:\WINDOWS\system32\inetsrv\httpext.dll
InProcessIsapiApps[ 1]   = C:\WINDOWS\system32\inetsrv\httpodbc.dll
InProcessIsapiApps[ 2]   = C:\WINDOWS\system32\inetsrv\ssinc.dll
InProcessIsapiApps[ 3]   = C:\WINDOWS\system32\msw3prt.dll
InProcessIsapiApps[ 4]   = C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll
InProcessIsapiApps[ 5]   = C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
InProcessIsapiApps[ 6]   = C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
MimeMap[ 0]   = System.__ComObject
MimeMap[ 1]   = System.__ComObject
MimeMap[ 2]   = System.__ComObject
MimeMap[ 3]   = System.__ComObject
MimeMap[ 4]   = System.__ComObject
MimeMap[ 5]   = System.__ComObject
MimeMap[ 6]   = System.__ComObject
ScriptMaps[ 0]   = .asp,C:\WINDOWS\system32\inetsrv\asp.dll,5,GET,HEAD,POST,TRACE
ScriptMaps[ 1]   = .cer,C:\WINDOWS\system32\inetsrv\asp.dll,5,GET,HEAD,POST,TRACE
ScriptMaps[ 2]   = .cdx,C:\WINDOWS\system32\inetsrv\asp.dll,5,GET,HEAD,POST,TRACE
ScriptMaps[ 3]   = .asa,C:\WINDOWS\system32\inetsrv\asp.dll,5,GET,HEAD,POST,TRACE
ScriptMaps[ 4]   = .idc,C:\WINDOWS\system32\inetsrv\httpodbc.dll,5,GET,POST
ScriptMaps[ 5]   = .shtm,C:\WINDOWS\system32\inetsrv\ssinc.dll,5,GET,POST
ScriptMaps[ 6]   = .shtml,C:\WINDOWS\system32\inetsrv\ssinc.dll,5,GET,POST
ScriptMaps[ 7]   = .stm,C:\WINDOWS\system32\inetsrv\ssinc.dll,5,GET,POST
ScriptMaps[ 8]   = .asax,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[ 9]   = .ascx,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[ 10]   = .ashx,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 11]   = .asmx,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 12]   = .aspx,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 13]   = .axd,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 14]   = .vsdisco,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 15]   = .rem,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 16]   = .soap,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 17]   = .config,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[ 18]   = .cs,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[ 19]   = .csproj,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[ 20]   = .vb,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[ 21]   = .vbproj,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[ 22]   = .webinfo,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[ 23]   = .licx,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[ 24]   = .resx,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[ 25]   = .resources,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
WebSvcExtRestrictionList[ 0]   = 1,C:\WINDOWS\system32\inetsrv\httpodbc.dll,0,HTTPODBC,Internet 数据连接器
WebSvcExtRestrictionList[ 1]   = 1,C:\WINDOWS\system32\inetsrv\ssinc.dll,0,SSINC,在服务器端的包含文件
WebSvcExtRestrictionList[ 2]   = 1,C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,0,ASP.NET v4.0.30319,ASP.NET v4.0.30319
WebSvcExtRestrictionList[ 3]   = 1,C:\WINDOWS\system32\inetsrv\asp.dll,0,ASP,Active Server Pages
WebSvcExtRestrictionList[ 4]   = 1,C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,0,ASP.NET v2.0.50727,ASP.NET v2.0.50727
WebSvcExtRestrictionList[ 5]   = 0,C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll,0,ASP.NET v1.1.4322,ASP.NET v1.1.4322
WebSvcExtRestrictionList[ 6]   = 0,*.exe
WebSvcExtRestrictionList[ 7]   = 1,C:\WINDOWS\system32\inetsrv\httpext.dll,0,WEBDAV,WebDAV
WebSvcExtRestrictionList[ 8]   = 0,*.dll
MaxBandwidth[ 0]   = -1
AdminACL[ 0]   = System.__ComObject

DirectoryEntry_Properties属性的遍历(win2003)的更多相关文章

  1. DirectoryEntry_Properties属性的遍历(win2008)

    DirectoryEntry root = new DirectoryEntry(@"IIS://localhost/W3SVC"); string PInfo = "& ...

  2. [转] JavaScript中的属性:如何遍历属性

    在JavaScript中,遍历一个对象的属性往往没有在其他语言中遍历一个哈希(有些语言称为字典)的键那么简单.这主要有两个方面的原因:一个是,JavaScript中的对象通常都处在某个原型链中,它会从 ...

  3. 【转载】JavaScript中的属性:如何遍历属性

    转载自:http://www.cnblogs.com/ziyunfei/archive/2012/11/03/2752905.html 在JavaScript中,遍历一个对象的属性往往没有在其他语言中 ...

  4. JavaScript中对象的属性:如何遍历属性

    for/in 语句循环遍历对象的属性. js中获取key得到某对象中相对应的value的方法:obj.key js中根据动态key得到某对象中相对应的value的方法有二: 一.var key = & ...

  5. VAD树结构体的属性以及遍历

    Windows内核分析索引目录:https://www.cnblogs.com/onetrainee/p/11675224.html VAD树的属性以及遍历 前面学习过的PFNDATABSAE是管理物 ...

  6. js 属性的遍历

    引自:http://es6.ruanyifeng.com/#docs/object 属性的遍历 ES6 一共有5种方法可以遍历对象的属性. (1)for...in for...in循环遍历对象自身的和 ...

  7. Iterator遍历器 调用Symbol.Iterator属性,遍历器对象。

    Iterator实现原理 创建一个指针对象,指向当前数据结构的起始位置.也就是说,遍历器对象本质上,就是一个指针对象. 第一次调用指针对象的next方法,可以将指针指向数据结构的第一个成员. 第二次调 ...

  8. JavaScript 对象属性的遍历

    ES6一共有5种方法可以遍历对象的属性. (1)for...in for...in循环遍历对象自身的和继承的可枚举属性(不含Symbol属性). (2)Object.keys(obj) Object. ...

  9. js解析多层嵌套的json,取出所有父元素属性和遍历所有子元素

    已知一个多层嵌套的json,取出所有父元素和子元素的id值 思路:因为不知道到底嵌套了多少层,递归有可能造成栈溢出.查询时间特别久的问题 所以先查询一次,判断是否有子节点,如果有,取出子节点并到父节点 ...

随机推荐

  1. ES6标准简介之Babel转码器解说

    ES6是ECMAScript 6的简称,是JavaScript语言的下一代标准,现在基于jquery库的前端开发js所使用的标准是ES5(ECMAScript 5).ES6已于2015年6月正式发布. ...

  2. eclipse中文版官方下载

    目前eclipse的使用已经越来越广泛,它不仅应用于Java开发中,对于C++开发.php开发的程序员们也是非常喜爱.eclipse中文版下载其实是eclipse官方网站提供的中文包,默认情况下ecl ...

  3. CF558E A Simple Task

    题目大意: 给定一个长度不超过10^5的字符串(小写英文字母),和不超过5000个操作. 每个操作 L R K 表示给区间[L,R]的字符串排序,K=1为升序,K=0为降序. 最后输出最终的字符串 首 ...

  4. memcached未授权

    memcached未授权 漏洞成因: Memcached端口是对外开放的,用nc或Telne可以直接登录,查看信息,增加修改都可以. nc -vv 1.2.3.4 11211 telnet 1.2.3 ...

  5. 浅谈dubbo的ExceptionFilter异常处理

    背景 我们的项目使用了dubbo进行不同系统之间的调用. 每个项目都有一个全局的异常处理,对于业务异常,我们会抛出自定义的业务异常(继承RuntimeException). 全局的异常处理会根据不同的 ...

  6. Python2.7-hmac

    hmac 模块,基于密钥的哈希算法 1.模块对象 1.1 HMAC 对象 1.1.1 初始化构建类:需要通过模块方法 hmac.new(key[, msg[, digestmod]]) 创建一个新对象 ...

  7. Python2.7-StringIO和cStringIO

    官方文档:https://docs.python.org/2/library/stringio.html StringIO 和 cStringIO 都是对内存中的文件进行读写,操作方法与文件操作类似, ...

  8. Python3 常见数据类型的转换

    Python3 常见数据类型的转换 一.数据类型的转换,你只需要将数据类型作为函数名即可 OCP培训说明连接:https://mp.weixin.qq.com/s/2cymJ4xiBPtTaHu16H ...

  9. C++之构造函数拷贝

    拷贝构造函数,顾名思义,就是通过拷贝对象的方式创建一个新对象.拷贝构造函数有两种原型(我们继续以book类来说明拷贝构造函数原型): book(book &b); book(const boo ...

  10. Hibernae

    开始尝试挺java ee的课程,马士兵老师的 1.ssh的整个框架体系 spring会贯穿在整个过程之中 2.Hibernate的整个框架体系 3. 4. 5. 6.