Session StaticObjects 集合


StaticObjects 集合包含 Session 对象范围中用 <OBJECT> 标记创建的所有对象。该集合可用于确定对象特定属性的值,或用于遍历集合并获取所有对象的全部属性。

语法

Session.StaticObjects( Key )
 

参数

Key
要检索的属性。

注释

使用循环控制结构可以遍历 StaticObjects 集合中的关键字。请看下面的示例。

<%
Dim objprop
For Each objprop in Session.StaticObjects
  Response.write(objproperty & " : " & Session.StaticObjects(objprop) & "<BR>")

Next

%>

本文作者:
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3