热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

DirectoryEntry.Properties属性的遍历,非常棒

usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.DirectoryServices;
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
//注意网站 与 虚拟目录的属性不一样的 path不同
DirectoryEntry dir = new DirectoryEntry("IIS://localhost/w3svc");
foreach (string elmentName in dir.Properties.PropertyNames)
{
PropertyValueCollection valueCollection = dir.Properties[elmentName];
for (int i = 0; i {
this.Response.Write(elmentName + "[" + i.ToString() + "] =" + valueCollection[i].ToString() + "
");
}
}

    }
}

 

 

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] =True
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] =5
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] =2199503
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_WENWEIFENG
AnonymousUserPass[0] =;d/Y)f5((+20(?
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] =Default.aspx,index.aspx,Default.htm,Default.asp,index.htm
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_WENWEIFENG
WAMUserPass[0] =xX!k63t5/67J(7
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 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/v2.0.50727/aspnet_isapi.dll
ScriptMaps[0] =.ad,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[1] =.adprototype,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[2] =.asa,C:/WINDOWS/system32/inetsrv/asp.dll,5,GET,HEAD,POST,TRACE
ScriptMaps[3] =.asax,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[4] =.ascx,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[5] =.ashx,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[6] =.asmx,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[7] =.asp,C:/WINDOWS/system32/inetsrv/asp.dll,5,GET,HEAD,POST,TRACE
ScriptMaps[8] =.aspx,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[9] =.axd,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[10] =.browser,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[11] =.cd,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[12] =.cdx,C:/WINDOWS/system32/inetsrv/asp.dll,5,GET,HEAD,POST,TRACE
ScriptMaps[13] =.cer,C:/WINDOWS/system32/inetsrv/asp.dll,5,GET,HEAD,POST,TRACE
ScriptMaps[14] =.compiled,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[15] =.config,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[16] =.cs,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[17] =.csproj,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[18] =.dd,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[19] =.exclude,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[20] =.idc,C:/WINDOWS/system32/inetsrv/httpodbc.dll,5,GET,POST
ScriptMaps[21] =.java,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[22] =.jsl,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[23] =.ldb,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[24] =.ldd,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[25] =.lddprototype,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[26] =.ldf,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[27] =.licx,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[28] =.master,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[29] =.mdb,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[30] =.mdf,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[31] =.msgx,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[32] =.refresh,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[33] =.rem,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[34] =.resources,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[35] =.resx,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[36] =.sd,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[37] =.sdm,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[38] =.sdmDocument,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[39] =.shtm,C:/WINDOWS/system32/inetsrv/ssinc.dll,5,GET,POST
ScriptMaps[40] =.shtml,C:/WINDOWS/system32/inetsrv/ssinc.dll,5,GET,POST
ScriptMaps[41] =.sitemap,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[42] =.skin,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[43] =.soap,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[44] =.stm,C:/WINDOWS/system32/inetsrv/ssinc.dll,5,GET,POST
ScriptMaps[45] =.svc,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[46] =.vb,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[47] =.vbproj,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[48] =.vjsproj,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
ScriptMaps[49] =.vsdisco,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,1,GET,HEAD,POST,DEBUG
ScriptMaps[50] =.webinfo,C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_isapi.dll,5,GET,HEAD,POST,DEBUG
WebSvcExtRestrictionList[0] =0,*.exe
WebSvcExtRestrictionList[1] =0,*.dll
WebSvcExtRestrictionList[2] =0,C:/WINDOWS/system32/inetsrv/ssinc.dll,0,SSINC,在服务器端的包含文件
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/system32/inetsrv/httpodbc.dll,0,HTTPODBC,Internet 数据连接器
WebSvcExtRestrictionList[6] =0,C:/WINDOWS/system32/inetsrv/httpext.dll,0,WEBDAV,WebDAV
MaxBandwidth[0] =-1
AdminACL[0] =System.__ComObject


推荐阅读
  • 本文将从基础概念入手,详细探讨SpringMVC框架中DispatcherServlet如何通过HandlerMapping进行请求分发,以及其背后的源码实现细节。 ... [详细]
  • 利用 Calcurse 在 Linux 终端高效管理日程与任务
    对于喜爱使用 Linux 终端进行日常操作的系统管理员来说,Calcurse 提供了一种强大的方式来管理日程安排、待办事项及会议。本文将详细介绍如何在 Linux 上安装和使用 Calcurse,帮助用户更有效地组织工作。 ... [详细]
  • 本文介绍了如何通过C#语言调用动态链接库(DLL)中的函数来实现IC卡的基本操作,包括初始化设备、设置密码模式、获取设备状态等,并详细展示了将TextBox中的数据写入IC卡的具体实现方法。 ... [详细]
  • 如何在PHP中安装Xdebug扩展
    本文介绍了如何从PECL下载并编译安装Xdebug扩展,以及如何配置PHP和PHPStorm以启用调试功能。 ... [详细]
  • 在尝试启动Java应用服务器Tomcat时,遇到了org.apache.catalina.LifecycleException异常。本文详细记录了异常的具体表现形式,并提供了有效的解决方案。 ... [详细]
  • 本文详细介绍了 `org.apache.tinkerpop.gremlin.structure.VertexProperty` 类中的 `key()` 方法,并提供了多个实际应用的代码示例。通过这些示例,读者可以更好地理解该方法在图数据库操作中的具体用途。 ... [详细]
  • 二维码的实现与应用
    本文介绍了二维码的基本概念、分类及其优缺点,并详细描述了如何使用Java编程语言结合第三方库(如ZXing和qrcode.jar)来实现二维码的生成与解析。 ... [详细]
  • Beetl是一款先进的Java模板引擎,以其丰富的功能、直观的语法、卓越的性能和易于维护的特点著称。它不仅适用于高响应需求的大型网站,也适合功能复杂的CMS管理系统,提供了一种全新的模板开发体验。 ... [详细]
  • 本文详细介绍了JQuery Mobile框架中特有的事件和方法,帮助开发者更好地理解和应用这些特性,提升移动Web开发的效率。 ... [详细]
  • 本文详细介绍了C++中的构造函数,包括其定义、特点以及如何通过构造函数进行对象的初始化。此外,还探讨了转换构造函数的概念及其在不同情境下的应用,以及如何避免不必要的隐式类型转换。 ... [详细]
  • spring boot使用jetty无法启动 ... [详细]
  • CentOS下ProFTPD的安装与配置指南
    本文详细介绍在CentOS操作系统上安装和配置ProFTPD服务的方法,包括基本配置、安全设置及高级功能的启用。 ... [详细]
  • 3.[15]Writeaprogramtolistallofthekeysandvaluesin%ENV.PrinttheresultsintwocolumnsinASCIIbet ... [详细]
  • 本文详细介绍了 Java 中 org.w3c.dom.Node 类的 isEqualNode() 方法的功能、参数及返回值,并通过多个实际代码示例来展示其具体应用。此方法用于检测两个节点是否相等,而不仅仅是判断它们是否为同一个对象。 ... [详细]
  • 本文提供了《汇编语言 第3版》中检测点11.2的详细参考答案,包括了各指令执行后的状态标志分析。 ... [详细]
author-avatar
mobiledu2502880603
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有