This method deletes the file on the Http server with specified URI.
[Visual Basic] Public Function DeleteFile(ByVal
remoteAddress As System.Uri) As Boolean
[C#] public bool DeleteFile(System.Uri
remoteAddress);
Parameters
- remoteAddress
- URI
Return Value
Returns True if successful. Returns False if unsuccessful.
Explanation
The DeleteFile method deletes the file on the Http server with specified URI.
This method is effective for the HTTP or HTTPS protocol.
Example
[Visual Basic.NET] Dim _http As New Newtone.ImageKit.WPF.Http Dim Ret As Boolean 'Username and password _http.Credentials = New NetworkCredential("user", "password") 'Deletes the file Ret = _http.DeleteFile(New Uri("http://www.newtone.co.jp/test/test.jpg")) [Visual C#.NET] Newtone.ImageKit.WPF.Http _http = new Newtone.ImageKit.WPF.Http(); bool Ret; //Username and password _http.Credentials = new NetworkCredential("user", "password"); //Deletes the file Ret = _http.DeleteFile(new Uri("http://www.newtone.co.jp/test/test.jpg"));