大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 操作系统 -> Web服务器 -> IIS6.0下ASP的新增功能(五)

IIS6.0下ASP的新增功能(五)

时间: 2021-07-31 作者:daque

下列示例在默许网站运用步调 (w3svc/1/root) 上起用盯梢。请提防,只有树立了 aspenabletracker 属性,aspappserviceflags 属性就爆发变换: on error resume next set providerobj = getobject("winmgmts://mymachine/root/microsoftiisv2") ' 赢得对名为“默许网站”的 asp 运用步调的援用 set iiswebvirtualdirsettingobj = providerobj.get("iiswebvirtualdirsetting='w3svc/1/root'") wscript.echo "before: aspenabletracker=" & iiswebvirtualdirsettingobj.aspenabletracker wscript.echo " aspappserviceflags=" & iiswebvirtualdirsettingobj.aspappserviceflags ' 树立 asp 运用步调以起用 com+ 盯梢 iiswebvirtualdirsettingobj.aspenabletracker = 1 iiswebvirtualdirsettingobj.put_() ' 再次赢得援用以革新 aspappserviceflags 属性。 set iiswebvirtualdirsettingobj = nothing set iiswebvirtualdirsettingobj = providerobj.get("iiswebvirtualdirsetting='w3svc/1/root'") wscript.echo "after: aspenabletracker=" & iiswebvirtualdirsettingobj.aspenabletracker wscript.echo " aspappserviceflags=" & iiswebvirtualdirsettingobj.aspappserviceflags 工作:从 iis 4.0 版起,asp 页面中仍旧扶助工作的运用。然而,iis 变动了工作的里面实行再不运用 com+ 效劳。iis 不复经过创造 com 组件来包含工作,而是径直考察 com+ 工作效劳,所以大地面普及了工作处置的速率。与往日一律,工作只能在页面级别举行摆设,摆设时运用 @transaction 训令和 asp 内置东西的事变,该东西名为 objectcontext。 asp 的新摆设数据库属性 底下的摆设数据库树立已被增添到此本子的 asp 中。 摆设数据库属性名用处aspappserviceflags 起用诸如 com+ 并排汇合(往日被称为 fusion)、分区等功效。aspdisktemplatecachedirectory指定 asp 磁盘缓存的场所。aspexecuteinmta使 asp 线程不妨在多线程单位中实行。aspkeepsessionidsecure将 asp 对话 cookie 安定地发送给欣赏器。 aspmaxdisktemplatecachefiles指定 asp 的最大硬盘缓存。asppartitionid为运用步调指定所运用的 com+ 分区。asprunonendanonymously使 asp 不妨以隐姓埋名办法运转 global.asa application_onend 和 session_onend 事变。aspbufferinglimit指定缓冲区巨细的控制。aspmaxrequestentityallowed指定 asp 乞求的实业中承诺的最大字节数。 aspsxsname承诺 asp 运用步调指定要运用的体例 dll 或 保守 com 组件的本子。(根源:搜集)

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.