Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/User/Properties/PUID: Difference between revisions
Jump to navigation
Jump to search
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23: | <!-- Generated @ 08/12/2022 23:46:09 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/user/properties/PUID.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/User/Index|User]].PUID Property (Restricted) = | ||
Requires PassportSiteID permission. Contains a variant object with the Microsoft® .NET Passport Unique ID (PUID) of the user. This property is read-only and applies to the local user only. | Requires PassportSiteID permission. Contains a variant object with the Microsoft® .NET Passport Unique ID (PUID) of the user. This property is read-only and applies to the local user 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 variant object with the PUID of the user, as provided by the .NET Passport used to sign in. | Returns a variant object with the PUID of the user, as provided by the .NET Passport used to sign in. | ||
Example | === Example === | ||
To print the PUID of the local user in the body of the document, write the value of <span class="clsUIElement">Users.Me.PUID</span>, as shown in the following script example: | To print the PUID of the local user in the body of the document, write the value of <span class="clsUIElement">Users.Me.PUID</span>, as shown in the following script example: | ||
Line 40: | Line 40: | ||
</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. | ||
Reading the PUID property of the remote user returns a blank value. | Reading the PUID property of the remote user returns a blank value. |
Latest revision as of 02:10, 13 August 2022
User.PUID Property (Restricted)
Requires PassportSiteID permission. Contains a variant object with the Microsoft® .NET Passport Unique ID (PUID) of the user. This property is read-only and applies to the local user only.
VBScript Syntax
external.Users.Me.PUID
JavaScript Syntax =
window.external.Users.Me.PUID
Property Value
Returns a variant object with the PUID of the user, as provided by the .NET Passport used to sign in.
Example
To print the PUID of the local user in the body of the document, write the value of Users.Me.PUID, as shown in the following script example:
<script type="JavaScript"> <!-- var myUsers = window.external.Users; var myLocalUser = myUsers.Me; // Write my Passport Unique ID (PUID) in the body of the document. document.write("Passport Unique ID " + myLocalUser.PUID); </script> //-->
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.
Reading the PUID property of the remote user returns a blank value.