[Visual Basic] Public Function
FtpRenameFile(ByVal remoteHost As String, ByVal oldRemotePath As
String, ByVal remotePort As Integer, ByVal newRemotePath As String)
As Boolean
[C#] public bool FtpRenameFile(string
remoteHost, string oldRemotePath, int remotePort, string
newRemotePath);
Parameters
remoteHost
Domain name in DNS style, or IP address
oldRemotePath
The remote URI
remotePort
The IP port number
newRemotePath
The new remote filename
Return Value
Returns True if successful. Returns False if unsuccessful.
Explanation
The FtpRenameFile method renames a file on an FTP server specifying the host name, the remote URI, the port number and the new remote filename. This method is enabled for the FTP proptocol.
Example
[Visual Basic.NET] Dim Ret As Boolean 'Username and password ImageKit.File.FtpCredentials = New NetworkCredential("user", "password") 'Renames the file Ret = ImageKit.File.FtpRenameFile("www.newtone.co.jp", "test/test.jpg", 21,"test/test1.jpg") [Visual C#.NET] bool Ret; //Username and password ImageKit.File.FtpCredentials = new NetworkCredential("user", "password"); //Renames the file Ret = ImageKit.File.FtpRenameFile("www.newtone.co.jp", "test/test.jpg", 21, "test/test1.jpg");
See Also
ImageKit.File Members | Newtone.ImageKit.Wpf.ImageKit