'Declaration Public Function SortDirectoryListing( _ ByVal directoryListing As System.Collections.Generic.List(Of FTPFileInfo), _ ByVal directoriesOnTop As System.Boolean, _ ByVal sortColumn As FtpSortColumn, _ ByVal ascending As System.Boolean _ ) As System.Collections.Generic.List(Of FTPFileInfo)
'Usage Dim instance As SFTP Dim directoryListing As System.Collections.Generic.List(Of FTPFileInfo) Dim directoriesOnTop As System.Boolean Dim sortColumn As FtpSortColumn Dim ascending As System.Boolean Dim value As System.Collections.Generic.List(Of FTPFileInfo) value = instance.SortDirectoryListing(directoryListing, directoriesOnTop, sortColumn, ascending)
public System.Collections.Generic.List<FTPFileInfo> SortDirectoryListing( System.Collections.Generic.List<FTPFileInfo> directoryListing, System.bool directoriesOnTop, FtpSortColumn sortColumn, System.bool ascending )
public function SortDirectoryListing( directoryListing: System.Collections.Generic.List; directoriesOnTop: System.Boolean; sortColumn: FtpSortColumn; ascending: System.Boolean ): System.Collections.Generic.List;
public function SortDirectoryListing( directoryListing : System.Collections.Generic.List, directoriesOnTop : System.boolean, sortColumn : FtpSortColumn, ascending : System.boolean ) : System.Collections.Generic.List;
public: System.Collections.Generic.List<FTPFileInfo*>* SortDirectoryListing( System.Collections.Generic.List<FTPFileInfo*>* directoryListing, System.bool directoriesOnTop, FtpSortColumn sortColumn, System.bool ascending )
public: System.Collections.Generic.List<FTPFileInfo^>^ SortDirectoryListing( System.Collections.Generic.List<FTPFileInfo^>^ directoryListing, System.bool directoriesOnTop, FtpSortColumn sortColumn, System.bool ascending )
Parameters
- directoryListing
- A directory listing from the GetDirectoryListing method
- directoriesOnTop
- Float directories to the top
- sortColumn
- What column to sort on
- ascending
- If true, sort the list ascending, otherwise sort descending