DirectoryEntry_Properties属性的遍历(win2008)
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的结果是:
KeyType[ 0] = IIsWebService
SslUseDsMapper[ 0] = False
LogFileDirectory[ 0] = C:\inetpub\logs\LogFiles
LogPluginClsid[ 0] = {FF160663-DE82-11CF-BC0A-00AA006111E0}
AppPoolId[ 0] = DefaultAppPool
IIs5IsolationModeEnabled[ 0] = False
DontLog[ 0] = False
DirBrowseFlags[ 0] = 1073741854
DefaultDoc[ 0] = Index.aspx,Default.htm,Default.asp,index.htm,index.html,iisstart.htm,default.aspx
AuthFlags[ 0] = 1
AnonymousUserName[ 0] = IUSR
AspDiskTemplateCacheDirectory[ 0] = C:\inetpub\temp\ASP Compiled Templates
HttpErrors[ 0] = 401,*,FILE,C:\inetpub\custerr\zh-CN\401.htm
HttpErrors[ 1] = 403,*,FILE,C:\inetpub\custerr\zh-CN\403.htm
HttpErrors[ 2] = 404,*,FILE,C:\inetpub\custerr\zh-CN\404.htm
HttpErrors[ 3] = 405,*,FILE,C:\inetpub\custerr\zh-CN\405.htm
HttpErrors[ 4] = 406,*,FILE,C:\inetpub\custerr\zh-CN\406.htm
HttpErrors[ 5] = 412,*,FILE,C:\inetpub\custerr\zh-CN\412.htm
HttpErrors[ 6] = 500,*,FILE,C:\inetpub\custerr\zh-CN\500.htm
HttpErrors[ 7] = 501,*,FILE,C:\inetpub\custerr\zh-CN\501.htm
HttpErrors[ 8] = 502,*,FILE,C:\inetpub\custerr\zh-CN\502.htm
SSIExecDisable[ 0] = False
AccessSSLFlags[ 0] = 0
NTAuthenticationProviders[ 0] = Negotiate,NTLM
WebSvcExtRestrictionList[ 0] = 0,*.exe
WebSvcExtRestrictionList[ 1] = 0,*.dll
WebSvcExtRestrictionList[ 2] = 1,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,ASP.NET v4.0.30319,ASP.NET v4.0.30319
WebSvcExtRestrictionList[ 3] = 1,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,ASP.NET v4.0.30319,ASP.NET v4.0.30319
WebSvcExtRestrictionList[ 4] = 1,C:\Windows\system32\inetsrv\asp.dll,1,ASP,Active Server Pages
WebSvcExtRestrictionList[ 5] = 1,C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\isapi\_vti_aut\author.dll,1,Windows SharePoint Services V3,Windows SharePoint Services V3
WebSvcExtRestrictionList[ 6] = 1,C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\isapi\_vti_adm\admin.dll,1,Windows SharePoint Services V3,Windows SharePoint Services V3
WebSvcExtRestrictionList[ 7] = 1,C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\isapi\shtml.dll,1,Windows SharePoint Services V3,Windows SharePoint Services V3
WebSvcExtRestrictionList[ 8] = 1,C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\isapi\owssvr.dll,1,Windows SharePoint Services V3,Windows SharePoint Services V3
WebSvcExtRestrictionList[ 9] = 1,C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,1,ASP.NET v2.0.50727,ASP.NET v2.0.50727
AccessFlags[ 0] = 513
ScriptMaps[ 0] = .rules,C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,1
ScriptMaps[ 1] = .xoml,C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,1
ScriptMaps[ 2] = .asp,C:\Windows\system32\inetsrv\asp.dll,5,GET,HEAD,POST
ScriptMaps[ 3] = .cer,C:\Windows\system32\inetsrv\asp.dll,5,GET,HEAD,POST
ScriptMaps[ 4] = .axd,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 5] = .aspx,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 6] = .rules,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1
ScriptMaps[ 7] = .xoml,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1
ScriptMaps[ 8] = .ashx,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 9] = .asmx,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 10] = .rem,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 11] = .soap,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 12] = .svc,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1
ScriptMaps[ 13] = .xamlx,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 14] = .aspq,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 15] = .cshtm,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 16] = .cshtml,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 17] = .vbhtm,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 18] = .vbhtml,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 19] = .axd,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 20] = .aspx,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 21] = .rules,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1
ScriptMaps[ 22] = .xoml,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1
ScriptMaps[ 23] = .ashx,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 24] = .asmx,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 25] = .rem,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 26] = .soap,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 27] = .svc,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1
ScriptMaps[ 28] = .xamlx,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 29] = .aspq,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 30] = .cshtm,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 31] = .cshtml,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 32] = .vbhtm,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 33] = .vbhtml,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 34] = .svc,C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,1
ScriptMaps[ 35] = .axd,C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 36] = .aspx,C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 37] = .ashx,C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 38] = .asmx,C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 39] = .rem,C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 40] = .soap,C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 41] = .stm,C:\Windows\system32\inetsrv\ssinc.dll,5,GET,POST
ScriptMaps[ 42] = .shtm,C:\Windows\system32\inetsrv\ssinc.dll,5,GET,POST
ScriptMaps[ 43] = .shtml,C:\Windows\system32\inetsrv\ssinc.dll,5,GET,POST
ScriptMaps[ 44] = .,C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[ 45] = .,C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ApplicationDependencies[ 0] = Active Server Pages;ASP
DoDynamicCompression[ 0] = True
HttpCustomHeaders[ 0] = X-Powered-By: ASP.NET
DirectoryEntry_Properties属性的遍历(win2008)的更多相关文章
- DirectoryEntry_Properties属性的遍历(win2003)
DirectoryEntry root = new DirectoryEntry(@"IIS://localhost/W3SVC"); string PInfo = "& ...
- [转] JavaScript中的属性:如何遍历属性
在JavaScript中,遍历一个对象的属性往往没有在其他语言中遍历一个哈希(有些语言称为字典)的键那么简单.这主要有两个方面的原因:一个是,JavaScript中的对象通常都处在某个原型链中,它会从 ...
- 【转载】JavaScript中的属性:如何遍历属性
转载自:http://www.cnblogs.com/ziyunfei/archive/2012/11/03/2752905.html 在JavaScript中,遍历一个对象的属性往往没有在其他语言中 ...
- JavaScript中对象的属性:如何遍历属性
for/in 语句循环遍历对象的属性. js中获取key得到某对象中相对应的value的方法:obj.key js中根据动态key得到某对象中相对应的value的方法有二: 一.var key = & ...
- VAD树结构体的属性以及遍历
Windows内核分析索引目录:https://www.cnblogs.com/onetrainee/p/11675224.html VAD树的属性以及遍历 前面学习过的PFNDATABSAE是管理物 ...
- js 属性的遍历
引自:http://es6.ruanyifeng.com/#docs/object 属性的遍历 ES6 一共有5种方法可以遍历对象的属性. (1)for...in for...in循环遍历对象自身的和 ...
- Iterator遍历器 调用Symbol.Iterator属性,遍历器对象。
Iterator实现原理 创建一个指针对象,指向当前数据结构的起始位置.也就是说,遍历器对象本质上,就是一个指针对象. 第一次调用指针对象的next方法,可以将指针指向数据结构的第一个成员. 第二次调 ...
- JavaScript 对象属性的遍历
ES6一共有5种方法可以遍历对象的属性. (1)for...in for...in循环遍历对象自身的和继承的可枚举属性(不含Symbol属性). (2)Object.keys(obj) Object. ...
- js解析多层嵌套的json,取出所有父元素属性和遍历所有子元素
已知一个多层嵌套的json,取出所有父元素和子元素的id值 思路:因为不知道到底嵌套了多少层,递归有可能造成栈溢出.查询时间特别久的问题 所以先查询一次,判断是否有子节点,如果有,取出子节点并到父节点 ...
随机推荐
- yield协程
1.Generator Generator , 一种可以返回迭代器的生成器,当程序运行到yield的时候,当前程序就唤起协程记录上下文,然后主函数继续操作,当需要操作的时候,在通过迭代器的next重新 ...
- N皇后问题 各种优化
0.问题引入 N皇后问题是一个经典的问题,在一个N*N的棋盘上放置N个皇后,每行一个并使其不能互相攻击(同一行.同一列.同一斜线上的皇后都会自动攻击),问有多少种摆法. 题目链接:https://ww ...
- springbatch入门练习(第二篇)
对第一遍内容的补充 <?xml version="1.0" encoding="UTF-8"?> <bean:beans xmlns=&quo ...
- linux固定ip地址
最近自己搭jenkins发现ifconfig出来ip老是变来变去决定固定服务ip,原来配置: [root@bogon bin]# cat /etc/sysconfig/network-scripts/ ...
- java多线程中的死锁情况读书笔记
多线程中的死锁 在前面的分析中,我们知道一个对象可以用Synchronized方法或者其他的加锁形式来防止别的任务在互斥还没有释放的时候就访问这个对象. 试想一下这样的情况:某个任务在等待另一个任务, ...
- day06--元组、字典、集合与关系运算
今日内容: 1.元组 2.字典 3.集合与关系运算 元组: 用途:记录多个值,当多个值没有改的需求,此时用元组更适合. 定义方式:在()内用逗号分隔开多个任意类型的值. 变量名=tuple('') 切 ...
- 大数据入门第十七天——storm上游数据源 之kafka详解(一)入门与集群安装
一.概述 1.kafka是什么 根据标题可以有个概念:kafka是storm的上游数据源之一,也是一对经典的组合,就像郭德纲和于谦 根据官网:http://kafka.apache.org/intro ...
- 大数据入门第十六天——流式计算之storm详解(三)集群相关进阶
一.集群提交任务流程分析 1.集群提交操作 参考:https://www.jianshu.com/p/6783f1ec2da0 2.任务分配与启动流程 参考:https://www.cnblogs.c ...
- Vultr搭建SS服务
购买VPS VPS又叫虚拟服务器,相当于是讲物理服务器的资源进行虚拟划分然后分配给不同的用户使用. Vultr服务器按小时计费,最低0.004美元/h,算起来2.5美元/月,且destory掉服务器是 ...
- OFS环境,删除Resource 时出现错误失败,应该如何继续
From the Windows failover cluster manager,select the group listener, stop it, and delete it. Do the ...