Dart Ftp Control
Restart Property
Description
Indicates whether the server supports a restart mechanism for file downloads.
Property type
Read-only property
Syntax
Visual Basic
Public Property Restart As Boolean
Remarks

Some servers do not support a restart mechanism for downloaded files that have been partially received. By reading this property you can discover if restarts are supported.

The value is returned on demand. Upon completion of the Login method the actual value is unknown.

When this property is read and the value is unknown, a blocking ftpRestart command is sent to test the server. The Blocked property is True while the reply is retrieved and will not timeout unless the connection fails. A True or False value is returned.

Once the value of this property is known, it is returned without checking the server.

If blocking is not desired, set the Timeout property to 0 and use the Command method with the string "REST 100" to get a reply from the server. If the Status parameter of the Progress event is ftpOk then the server supports the restart mechanism.

Note: Use error handling, since this property can return a run-time error.

Error Codes

This method may generate the following error code (refer to ErrorConstants for a complete list of error codes):

See Also

Ftp Object  | Ftp Members


PowerTCP FTP for ActiveX Documentation Version 2.2
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic