Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Users/Methods/Item
Jump to navigation
Jump to search
Users.Item Method
Returns a User object.
VBScript Syntax
myUser = Users.Item(n)
JavaScript Syntax
myUser = window.external.Users.Item(n);
Parameters
- lPos
- A long value representing the User object to return, between 0 and (Users.Count - 1).
JavaScript Example
The following code produces the output shown below:
var myUsers = window.external.Users; for ( i=0; i < myUsers.Count; i++ ) { document.write("User Item " + i ) ; if myUsers.Item(i) == myUsers.Me { document.write(" (me)"); } document.write("<br>"); }
Output:
User Item 0 User Item 1 (me)
Return Values
No return value.
Remarks
An exception is thrown if there is no item in the Users collection with the specified number.
Users.Item(0) is not guaranteed to be the same as Me or Inviter.