Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/User/Properties/Name: Difference between revisions
Jump to navigation
Jump to search
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23:46:09 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/user/properties/Name.htm --> | <!-- Generated @ 08/12/2022 23:46:09 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/user/properties/Name.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/User/Index|User]].Name Property (Restricted) = | ||
Requires PassportSiteID permission. Contains a string with the screen name of the user. This property is read-only. | Requires PassportSiteID permission. Contains a string with the screen name of the user. This property is read-only. | ||
VBScript Syntax | === VBScript Syntax === | ||
<div class="clsCodeIndent"> | <div class="clsCodeIndent"> | ||
Line 13: | Line 13: | ||
</div> | </div> | ||
JavaScript Syntax | === JavaScript Syntax === | ||
<div class="clsCodeIndent"> | <div class="clsCodeIndent"> | ||
Line 20: | Line 20: | ||
</div> | </div> | ||
Property Value | === Property Value === | ||
Returns a string with the user name, as provided by the Microsoft® .NET Passport Unique ID (PUID) used to sign in. | Returns a string with the user name, as provided by the Microsoft® .NET Passport Unique ID (PUID) used to sign in. | ||
Line 31: | Line 31: | ||
for ( i=0; i < myUsers.Count; i++ ) { | for ( i=0; i < myUsers.Count; i++ ) { | ||
document.write("User " + i + " is " + myUsers.Item(i).Name + "<br>"); | document.write("User " + i + " is " + myUsers.Item(i).Name + "<br>"); | ||
} | }</pre> | ||
</div> | </div> | ||
Line 40: | Line 39: | ||
<pre class="clsSyntax">User 0 is Amber | <pre class="clsSyntax">User 0 is Amber | ||
User 1 is Chris | User 1 is Chris</pre> | ||
</div> | </div> | ||
Remarks | === 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. | 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. |
Latest revision as of 02:09, 13 August 2022
User.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.