Dart.Ftp Namespace : Listing Class |
Public Class Listing Inherits System.Collections.Generic.List(Of ListEntry)
Dim instance As Listing
public class Listing : System.Collections.Generic.List<ListEntry>
public ref class Listing : public System.Collections.Generic.List<ListEntry>
This object encapsulates the listing returned from Ftp.List and cotains a collection of ListEntry objects (representing individual list entries, such as a file).
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
System.Collections.Generic.List<T>
Dart.Ftp.Listing