Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Properties/IMro: 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:01 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/properties/IMro.htm --> | <!-- Generated @ 08/12/2022 23:46:01 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/properties/IMro.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Index|Channel]].IM (read-only) Property (Restricted) = | ||
This property returns a string containing the instant message that has been received. It contains new data whenever the <span class="clsEvent">OnIMReceived</span> event fires. This property is read-only and is labeled "restricted" because it is only available if the application has the ReceiveIM permission. For more information, see [[Protocols/MSNP/Activities/SDK/Sandbox|Standard vs. Advanced Applications]]. | This property returns a string containing the instant message that has been received. It contains new data whenever the <span class="clsEvent">OnIMReceived</span> event fires. This property is read-only and is labeled "restricted" because it is only available if the application has the ReceiveIM permission. For more information, see [[Protocols/MSNP/Activities/SDK/Sandbox|Standard vs. Advanced Applications]]. | ||
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 === | ||
A string object containing the instant message received from the remote MSN® Messenger client. | A string object containing the instant message received from the remote MSN® Messenger client. | ||
Example | === Example === | ||
This example illustrates the display of a received instant message. | This example illustrates the display of a received instant message. | ||
Line 39: | Line 39: | ||
txtDebugOut.innerHTML = "Received: " + myLocalCopy; | txtDebugOut.innerHTML = "Received: " + myLocalCopy; | ||
} | }</pre> | ||
</div> | </div> | ||
Remarks | === Remarks === | ||
This property contains data that should be inspected every time the <span class="clsEvent">OnIMReceived</span> event occurs. | This property contains data that should be inspected every time the <span class="clsEvent">OnIMReceived</span> event occurs. |
Latest revision as of 01:45, 13 August 2022
Channel.IM (read-only) Property (Restricted)
This property returns a string containing the instant message that has been received. It contains new data whenever the OnIMReceived event fires. This property is read-only and is labeled "restricted" because it is only available if the application has the ReceiveIM permission. For more information, see Standard vs. Advanced Applications.
VBScript Syntax
external.Channel.IM
JavaScript Syntax
window.external.Channel.IM
Property Value
A string object containing the instant message received from the remote MSN® Messenger client.
Example
This example illustrates the display of a received instant message.
// Receiving the contents of an IM requires ReceiveIM permission flag. var myChannel = window.external.Channel; function Channel_OnIMReceived() { var myLocalCopy; myLocalCopy = myChannel.IM; txtDebugOut.innerHTML = "Received: " + myLocalCopy; }
Remarks
This property contains data that should be inspected every time the OnIMReceived event occurs.