Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Users/Properties/Count
Jump to navigation
Jump to search
Users.Count Property
Returns the number of objects in the Users collection. This property is read-only.
VBScript Syntax
numParticipants = window.external.Users.Count
JavaScript Syntax
var numParticipants; numParticipants = window.external.Users.Count;
Property Value
An integer containing the number of users in the current conversation window.
Because a conversation window must be opened in order to get this property, the count will never be 0.
If there are no participants other than the user, the count will be 1.
JavaScript Example
To print the number of users in this conversation, write the value of users.Count.
<script type="JavaScript"> <!-- // Print the number of participants in the body of the document. document.write(window.external.Users.Count + " player(s)"); </script> //-->
Remarks
In MSN® Messenger version 6.0, peer-to-peer activity has a maximum of two users, so the Count property will return 1 or 2.