©
本文檔使用 php中文網手册 發布
Count 属性返回在 Dictionary 对象中 key/item 对的数目。
DictionaryObject.Count
<%
dim d
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
d.Add "i","Italy"
d.Add "s","Sweden"
Response.Write("The number of key/item pairs: " & d.Count)
set d=nothing
%>
输出:
The number of key/item pairs: 3