Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Events/OnFileReceived: 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:45:54 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/events/OnFileReceived.htm --> | <!-- Generated @ 08/12/2022 23:45:54 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/channel/events/OnFileReceived.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Index|Channel]]>.OnFileReceived Event (Restricted) = | ||
This event fires when a file is received from the remote application. The event is labeled "restricted" because it is available only if the application has both the ActiveX and SendFile permission flags. For more information, see [[Protocols/MSNP/Activities/SDK/Sandbox|Standard vs. Advanced Applications]]. | This event fires when a file is received from the remote application. The event is labeled "restricted" because it is available only if the application has both the ActiveX and SendFile permission flags. For more information, see [[Protocols/MSNP/Activities/SDK/Sandbox|Standard vs. Advanced Applications]]. | ||
VBScript Syntax | === VBScript Syntax === | ||
<div class="clsCodeStd"> | <div class="clsCodeStd"> | ||
Line 12: | Line 12: | ||
<pre class="clsCode">function Channel_OnFileReceived() | <pre class="clsCode">function Channel_OnFileReceived() | ||
' A file was received from remote application; inspect the value of Channel.FileInfo | ' A file was received from remote application; inspect the value of Channel.FileInfo | ||
End Function | End Function</pre> | ||
</div> | </div> | ||
JavaScript Syntax | === JavaScript Syntax === | ||
<div class="clsCodeStd"> | <div class="clsCodeStd"> | ||
Line 22: | Line 21: | ||
<pre class="clsCode">function Channel_OnFileReceived() { | <pre class="clsCode">function Channel_OnFileReceived() { | ||
// A file was received from remote application; inspect the value of Channel.FileInfo | // A file was received from remote application; inspect the value of Channel.FileInfo | ||
} | }</pre> | ||
</div> | </div> | ||
Remarks | === Remarks === | ||
Inspect the value of <span class="clsMethod">Channel.FileInfo</span> after the <span class="clsEvent">OnFileReceived</span> event. | Inspect the value of <span class="clsMethod">Channel.FileInfo</span> after the <span class="clsEvent">OnFileReceived</span> event. | ||
The ActiveX permission flag is required because managing files involves interacting with the local computer's file system. | The ActiveX permission flag is required because managing files involves interacting with the local computer's file system. |
Revision as of 00:51, 13 August 2022
Channel>.OnFileReceived Event (Restricted)
This event fires when a file is received from the remote application. The event is labeled "restricted" because it is available only if the application has both the ActiveX and SendFile permission flags. For more information, see Standard vs. Advanced Applications.
VBScript Syntax
function Channel_OnFileReceived() ' A file was received from remote application; inspect the value of Channel.FileInfo End Function
JavaScript Syntax
function Channel_OnFileReceived() { // A file was received from remote application; inspect the value of Channel.FileInfo }
Remarks
Inspect the value of Channel.FileInfo after the OnFileReceived event.
The ActiveX permission flag is required because managing files involves interacting with the local computer's file system.