This method deletes a file on an FTP server specifying the remote URI.
[Visual Basic] Public Function
FtpDeleteFile(ByVal remoteAddress As System.Uri) As Boolean
[C#] public bool FtpDeleteFile(System.Uri
remoteAddress);
Parameters
remoteAddress
URI
Return Value
Returns True if successful. Returns False if unsuccessful.
Explanation
The FtpDeleteFile method deletes a file on an FTP server specifying the remote URI.
This method is effective for the FTP protocol.
Example
[Visual Basic.NET]
Dim Ret As Boolean
'Username and password
ImageKit.File.FtpCredentials = New NetworkCredential("user", "password")
'Deletes the file
Ret = ImageKit.File.FtpDeleteFile(New Uri("ftp://www.newtone.co.jp/test/test.jpg"))
[Visual C#.NET]
bool Ret;
//Username and password
ImageKit.File.FtpCredentials = new NetworkCredential("user", "password");
//Deletes the file
Ret = ImageKit.File.FtpDeleteFile(new Uri("ftp://www.newtone.co.jp/test/test.jpg"));
See Also
ImageKit.File Members | Newtone.ImageKit.Wpf.ImageKit