Dart.Ftp Namespace : ListEntry Class |
To access a field that is not represented in the ListEntry object, manually parse the Text property.
private void getListing() { //Connect and log into the server, and get a listing ftp1.Connect(myServer); ftp1.Authenticate(myUsername, myPassword); Listing listing = ftp1.List("", "", ListType.Full); //Add all the list entries in the listing to a listbox foreach (ListEntry entry in listing) listBox1.Items.Add(entry.Text); //Logout of the server ftp1.Close(); }
Private Sub getListing() 'Connect and log into the server, and get a listing ftp1.Connect(myServer) ftp1.Authenticate(myUsername, myPassword) Dim listing As Listing = ftp1.List("", "", ListType.Full) 'Add all the list entries in the listing to a listbox For Each entry As ListEntry In listing listBox1.Items.Add(entry.Text) Next entry 'Logout of the server ftp1.Close() End Sub
System.Object
Dart.Ftp.ListEntry