Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Fileinfo/Properties/Incoming: Difference between revisions
Jump to navigation
Jump to search
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23: | <!-- Generated @ 08/12/2022 23:46:05 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/fileinfo/properties/Incoming.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= | __NOTOC__= [[Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Fileinfo/Index|Properties]].Incoming Property = | ||
Returns a Boolean value representing whether a <span class="clsUIElement">FileInfo</span> object is being received (<span class="clsUIElement">True</span>) or sent (<span class="clsUIElement">False</span>). | Returns a Boolean value representing whether a <span class="clsUIElement">FileInfo</span> object is being received (<span class="clsUIElement">True</span>) or sent (<span class="clsUIElement">False</span>). | ||
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 === | ||
Boolean value. A value of <span class="clsEnum">True</span> indicates that the file is incoming; a value of <span class="clsEnum">False</span> indicates that the file is outgoing. If no file is being transferred, this property has no value. | Boolean value. A value of <span class="clsEnum">True</span> indicates that the file is incoming; a value of <span class="clsEnum">False</span> indicates that the file is outgoing. If no file is being transferred, this property has no value. | ||
VBScript Example | === VBScript Example === | ||
The following example displays a message indicating whether the current file transfer is an upload or a download by checking the value of <span class="clsMethod">Channel.FileInfo.Incoming</span>. | The following example displays a message indicating whether the current file transfer is an upload or a download by checking the value of <span class="clsMethod">Channel.FileInfo.Incoming</span>. | ||
Line 34: | Line 34: | ||
if ( testFile.Incoming = False ) then | if ( testFile.Incoming = False ) then | ||
document.write( "Upload in progress." ) | document.write( "Upload in progress." ) | ||
' If neither, there is no file transfer in progress | ' If neither, there is no file transfer in progress</pre> | ||
</div> | </div> |
Latest revision as of 01:58, 13 August 2022
Properties.Incoming Property
Returns a Boolean value representing whether a FileInfo object is being received (True) or sent (False).
VBScript Syntax
external.Channel.FileInfo.Incoming
JavaScript Syntax
window.external.Channel.FileInfo.Incoming
Property Value
Boolean value. A value of True indicates that the file is incoming; a value of False indicates that the file is outgoing. If no file is being transferred, this property has no value.
VBScript Example
The following example displays a message indicating whether the current file transfer is an upload or a download by checking the value of Channel.FileInfo.Incoming.
if ( testFile.Incoming = True ) then document.write( "Download in progress." ) if ( testFile.Incoming = False ) then document.write( "Upload in progress." ) ' If neither, there is no file transfer in progress