Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/User/Properties/Name
<a class="clsStd" href="/techref/objectmodel/objects/user/index.htm">User</a>.Name Property (Restricted)
Requires PassportSiteID permission. Contains a string with the screen name of the user. This property is read-only.
VBScript Syntax
external.Users.Me.Name
JavaScript Syntax
window.external.Users.Me.Name
Property Value
Returns a string with the user name, as provided by the Microsoft® .NET Passport Unique ID (PUID) used to sign in.
JavaScript Example
var myUsers = window.external.Users; for ( i=0; i < myUsers.Count; i++ ) { document.write("User " + i + " is " + myUsers.Item(i).Name + "<br>"); }
produces this output
User 0 is Amber User 1 is Chris
Remarks
Use of this property is restricted by the PassportSiteID flag. An application that does not possess this flag is not able to read this information from MSN® Messenger. No error is thrown, and a blank value is returned.