Back to product page

ListItemsEvent event


Fires when server returns information about file or directory.

Syntax

  • C#
  • VB.NET
delegate void ListItemsDelegate(    object Sender,    FtpListItemsArgs Args );
The ListItemsEvent(Args.FileInfo) syntax has these parts:
Args.FileInfoString. Contains result of user's request. In ListDir method this property contains one or more full lines with raw directory list.

Delegate Sub ListItemsDelegate(ByVal Sender As Object, ByVal Args As FtpListItemsArgs)
The ListItemsEvent(Args.FileInfo) syntax has these parts:
Args.FileInfoString. Contains result of user's request. In ListDir method this property contains one or more full lines with raw directory list.

Remarks

ListItems event will be fired as a result of ListDir and ListNames methods. Args.FileInfo argument will contain complete description of all files in requested directory, as seen on UNIX systems. Each file will be in separate line, using CRLF sequence as a separator.

Platforms

Windows