1. 程式人生 > >C# WebClient下載ftp文件

C# WebClient下載ftp文件

down blog () pos 登錄憑證 post ftp文件 network ftp

要把設置登錄憑證name為anonymous

1  _clientDownload = new WebClient();
2 _clientDownload.Credentials = new NetworkCredential("anonymous", "");

C# WebClient下載ftp文件