最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

ASP Contents 集合

Application 對(duì)象參考手冊(cè)

Contents 集合包含著通過(guò)腳本命令添加到 application/session 的所有項(xiàng)目。

提示:要從 Contents 集合中刪除項(xiàng)目,請(qǐng)使用 Remove 和 RemoveAll 方法。

語(yǔ)法

Application.Contents(Key)

Session.Contents(Key)
參數(shù) 描述
key 必需。要取回的項(xiàng)目的名稱。

針對(duì) Application 對(duì)象的實(shí)例

例子 1

請(qǐng)注意,name 和 objtest 都會(huì)被追加到 Contents 集合中:

<% 
Application("name")="W3School"
Set Application("objtest")=Server.CreateObject("ADODB.Connection")
%>

例子 2

遍歷 Contents 集合:

<%
for each x in Application.Contents
  Response.Write(x & "=" & Application.Contents(x) & "<br />")
next
%>

或者:

<%
For i=1 to Application.Contents.Count
  Response.Write(i & "=" & Application.Contents(i) & "<br />")
Next
%>

例子 3

<%
Application("date")="2001/05/05"
Application("author")="W3School"

for each x in Application.Contents
  Response.Write(x & "=" & Application.Contents(x) & "<br />")
next
%>

輸出:

date=2001/05/05
author=W3School

針對(duì) Session 對(duì)象的實(shí)例

例子 1

請(qǐng)注意,name 和 objtest 都會(huì)被追加到 Contents 集合中:

<% 
Session("name")="Hege"
Set Session("objtest")=Server.CreateObject("ADODB.Connection")
%>

例子 2

遍歷 Contents 集合:

<%
for each x in Session.Contents
  Response.Write(x & "=" & Session.Contents(x) & "<br />")
next
%>

或者:

<%
For i=1 to Session.Contents.Count
  Response.Write(i & "=" & Session.Contents(i) & "<br />")
Next
%>

例子 3

<%
Session("name")="Hege"
Session("date")="2001/05/05"

for each x in Session.Contents
  Response.Write(x & "=" & Session.Contents(x) & "<br />")
next
%>

輸出:

name=Hege
date=2001/05/05

Application 對(duì)象參考手冊(cè)

厦门市| 静乐县| 临桂县| 龙里县| 台前县| 贵德县| 澳门| 施秉县| 五常市| 广汉市| 肇东市| 尖扎县| 永靖县| 五台县| 邵阳市| 潼关县| 宜春市| 那曲县| 辽中县| 鹿泉市| 清苑县| 赞皇县| 克拉玛依市| 濮阳市| 崇州市| 独山县| 东源县| 新昌县| 聊城市| 怀柔区| 通海县| 耒阳市| 开封市| 海淀区| 剑河县| 寻乌县| 九台市| 吐鲁番市| 彰化县| 临桂县| 广平县|