ASP Countプロパティ


Dictionary 对象参考手册完全な Dictionary オブジェクトリファレンス

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


Dictionary 对象参考手册完全な Dictionary オブジェクトリファレンス その他の拡張