Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/User/Properties/Email: 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:08 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/user/properties/Email.htm --> | <!-- Generated @ 08/12/2022 23:46:08 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/user/properties/Email.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/User/Index|User]].EMail Property (Restricted) = | ||
Requires PassportSiteID permission. Contains a string with the e-mail address of the user. This property is read-only. | Requires PassportSiteID permission. Contains a string with the e-mail address of the user. This property is read-only. | ||
VBScript Syntax | == VBScript Syntax == | ||
<div class="clsCodeIndent"> | <div class="clsCodeIndent"> | ||
Line 15: | Line 15: | ||
</div> | </div> | ||
JavaScript Syntax | == JavaScript Syntax == | ||
<div class="clsCodeIndent"> | <div class="clsCodeIndent"> | ||
Line 24: | Line 24: | ||
</div> | </div> | ||
Property Value | == Property Value == | ||
Contains a string with the e-mail address of the user, as provided by the Microsoft® .NET Passport Unique ID (PUID). | Contains a string with the e-mail address of the user, as provided by the Microsoft® .NET Passport Unique ID (PUID). | ||
Example | == Example == | ||
To print the e-mail address of the local user in the body of the document, set a span of text to the value of <span class="clsMethod">Users.Me.EMail</span>, as shown in the following example. | To print the e-mail address of the local user in the body of the document, set a span of text to the value of <span class="clsMethod">Users.Me.EMail</span>, as shown in the following example. | ||
Line 49: | Line 49: | ||
</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:06, 13 August 2022
User.EMail Property (Restricted)
Requires PassportSiteID permission. Contains a string with the e-mail address of the user. This property is read-only.
VBScript Syntax
set myUsers=external.Users set myLocalUser = myUsers.Me document.write( myLocalUser.EMail )
JavaScript Syntax
var myUsers = window.external.Users; var myLocalUser = myUsers.Me; document.write( myLocalUser.EMail );
Property Value
Contains a string with the e-mail address of the user, as provided by the Microsoft® .NET Passport Unique ID (PUID).
Example
To print the e-mail address of the local user in the body of the document, set a span of text to the value of Users.Me.EMail, as shown in the following example.
Script:
<script type="JavaScript"> <!-- var myUsers = window.external.Users; var myLocalUser = myUsers.Me; // Print my Passport e-mail address in the body of the document. document.all.whatsmyemail.innerhtml=myLocalUser.EMail; </script> //-->
Document body:
<!-- Assign a new value to innerhtml of whatsmyemail to replace the empty space below. --> Send mail to '<span id="whatsmyemail"> </span>'.
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.