Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Fileinfo/Properties/Incoming
Jump to navigation
Jump to search
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