State Property  
 

Return the current state of the control.

This property has been deprecated and may not be included in future versions of the control.

Syntax

object.State

Remarks

The State read-only property returns the state of the control. This property should be checked on blocking controls to determine if the control is in use before taking some action. The possible values returned by this property are:

Value Constant Description
0 ftpStatusUnused No connection has been established
1 ftpStatusIdle The client is current idle and not sending or receiving data
2 ftpStatusConnect The client is establishing a connection with the server
3 ftpStatusRead The client is reading data from the server
4 ftpStatusWrite The client is writing data to the server
5 ftpStatusDisconnect The client is disconnecting from the server
6 ftpStatusOpenFile The client is opening a file on the server and establishing a data connection
7 ftpStatusCloseFile The client is closing a file on the server and terminating the data connection
8 ftpStatusGetFile The client is transferring a file from the server to the local system
9 ftpStatusPutFile The client is transferring a file from the local system to the server
10 ftpStatusFileList The client is reading a list of files returned by the server

Data Type

Integer (Int32)

See Also

IsConnected Property, IsReadable Property, IsWritable Property, Connect Method, Disconnect Method