The Cancel method cancels the current data transfer in
progress.
Parameters
None.
Return Value
If the method succeeds, the return value is a non-zero. If the
method fails, the return value is zero. To get extended error information,
call the GetLastError method.
Remarks
The Cancel method will cancel the current data
transfer and abort the connection to the storage server. This method will fail
if an active data transfer (either an upload or download) is not in progress.
This would typically be used within an event handler to cancel an operation
as the contents of an object are being read or written. There is no mechanism to
resume a canceled data transfer and this method should only be used when absolutely
necessary.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: cswebv10.lib
See Also
GetTransferStatus,
RegisterEvent
|