ASP Count లక్షణం

నిర్వచనం మరియు వినియోగం

Count లక్షణం డిక్షనరీ ఆబ్జెక్ట్లో కీ/అంశం సంఖ్యను తిరిగి ఇస్తుంది.

విధానంలో:

DictionaryObject.Count

ప్రతిపాదన

<%
dim d
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "c","China"
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