Dart.Ftp Namespace > Ftp Class > Get Method : Get(String,String,Synchronize) Method |
Public Overloads Function Get( _ ByVal remotePath As String, _ ByVal localPath As String, _ ByVal sync As Synchronize _ ) As CopyResult
Dim instance As Ftp Dim remotePath As String Dim localPath As String Dim sync As Synchronize Dim value As CopyResult value = instance.Get(remotePath, localPath, sync)
public CopyResult Get( string remotePath, string localPath, Synchronize sync )
public: CopyResult^ Get( String^ remotePath, String^ localPath, Synchronize sync )
private void button1_Click(object sender, EventArgs e) { //Connect to the FTP Server. ftp1.Connect(myServer); //Login with user credentials ftp1.Authenticate(myUsername, myPassword); //Retrieve a file. ftp1.Get("testfile.txt", Path.Combine(myLocalDirectory, "testfile.txt"), Synchronize.Off); //Close the connection. ftp1.Close(); }
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles button1.Click 'Connect to the FTP Server. ftp1.Connect(myServer) 'Login with user credentials ftp1.Authenticate(myUsername, myPassword) 'Retrieve a file. ftp1.Get("testfile.txt", Path.Combine(myLocalDirectory, "testfile.txt"), Synchronize.Off) 'Close the connection. ftp1.Close() End Sub