Back to product page

Item property


References specific user currently connected to FTP server.

Type

A FtpUser object. Reference to requested user in the collection.

Syntax

  • Basic
object.Item(Index)
The Item(object,Index) syntax has these parts:
objectAn expression evaluating to an object of type FtpUsers.
IndexRequired. An Integer value. Sequence number of the user in the collection.

Remarks

Item property will return reference to the user in the collection of all connected users. You must specify user's Index, which should be between 0 and Count property. Once you get user's reference, you can access his properties through FTPUser object.

Please note that user's Index changes often while he's connected. Since Index is relative and always starts from 0, when new clients connect and disconnect, user's Index may change and you should never 'hardcode' this number in your code. Index is valid only inside the function you try to request it. If you prefer to reference user's by unique number - try using UIDs property.

Platforms

Windows