Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Users/Properties/Inviter: Difference between revisions
Jump to navigation
Jump to search
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23: | <!-- Generated @ 08/12/2022 23:46:12 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/users/properties/Inviter.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= <a class="clsStd" href="/techref/objectmodel/objects/users/index.htm">Users</a>.Inviter Property = | __NOTOC__= <a class="clsStd" href="/techref/objectmodel/objects/users/index.htm">Users</a>.Inviter Property = |
Revision as of 22:46, 12 August 2022
<a class="clsStd" href="/techref/objectmodel/objects/users/index.htm">Users</a>.Inviter Property
Returns a User object that identifies the user who started an MSN® Messenger chat instance. This property is read-only.
VBScript Syntax
external.Users.Inviter
JavaScript Syntax
window.external.Users.Inviter;
Property Value
This property identifies the user who originally began this Messenger conversation.
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 inviter's name is implicitly restricted because the Name property of the User object needs the PassportSiteID permission flag.