Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Users/Properties/Me: 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:11 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/users/properties/Me.htm --> | <!-- Generated @ 08/12/2022 23:46:11 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/users/properties/Me.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Users/Index|Users]].Me Property = | ||
Contains a <span class="clsObject">User</span> object identifying the local participant. This property is read-only. | Contains a <span class="clsObject">User</span> object identifying the local participant. 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 <span class="clsObject">User</span> object that identifies the local participant. | Returns a <span class="clsObject">User</span> object that identifies the local participant. | ||
Example | === Example === | ||
To determine whether the local user initiated this conversation, test for the equivalency of <span class="clsMethod">Users.Inviter</span> and <span class="clsMethod">Users.Me</span>. | To determine whether the local user initiated this conversation, test for the equivalency of <span class="clsMethod">Users.Inviter</span> and <span class="clsMethod">Users.Me</span>. | ||
Line 41: | Line 41: | ||
} | } | ||
</script> | </script> | ||
//--> | //--></pre> | ||
</div> | </div> | ||
Remarks | === Remarks === | ||
Test for equivalence between <span class="clsMethod">Users.Me</span> and <span class="clsMethod">Users.Inviter</span> to see if the local user initiated the conversation. In JavaScript, the equivalence operator is three equal signs (===). | Test for equivalence between <span class="clsMethod">Users.Me</span> and <span class="clsMethod">Users.Inviter</span> to see if the local user initiated the conversation. In JavaScript, the equivalence operator is three equal signs (===). | ||
Displaying the user name is implicitly restricted because the <span class="clsProperty">Name</span> property of the <span class="clsObject">User</span> object needs the PassportSiteID permission flag. | Displaying the user name is implicitly restricted because the <span class="clsProperty">Name</span> property of the <span class="clsObject">User</span> object needs the PassportSiteID permission flag. |
Latest revision as of 02:16, 13 August 2022
Users.Me Property
Contains a User object identifying the local participant. This property is read-only.
VBScript Syntax
external.Users.Me
JavaScript Syntax
window.external.Users.Me;
Property Value
Returns a User object that identifies the local participant.
Example
To determine whether the local user initiated this conversation, test for the equivalency of Users.Inviter and Users.Me.
<script type="text/javascript"> <!-- if (window.external.users.inviter === window.external.users.me) { // I invited another user to this conversation. document.write("I am the Inviter."); } else { // I am the user who accepted the invitation. document.write("I am not the Inviter."); } </script> //-->
Remarks
Test for equivalence between Users.Me and Users.Inviter to see if the local user initiated the conversation. In JavaScript, the equivalence operator is three equal signs (===).
Displaying the user name is implicitly restricted because the Name property of the User object needs the PassportSiteID permission flag.