Description
Cancels the download progress of the file.
Applies to
Syntax
controlname.CancelDownload ( integer ItemId )
Argument |
Description |
---|---|
controlname |
The name of the WebBrowser control. |
ItemId |
The ID of the download file, starting from 1. ItemId should be the return value of DownloadingStart or
DownloadingStateChanged
event |
Return value
Integer.
Returns 1 if the function succeeds and a negative value if an error occurs. If any argument's value is null, the method returns null.
Examples
Integer li_rtn, li_itemid li_rtn = wb_1.CancelDownload(li_itemid)
See also