Namespace: ITHit.WebDAV.Client
The IMultistatusResponse type exposes the following members.
Name | Description | |
---|---|---|
Description |
Description of error, if available.
| |
Href |
Url of the item.
| |
Status |
HTTP Status of the operation.
|
string license = "<?xml version='1.0' encoding='utf... WebDavSession session = new WebDavSession(license); session.Credentials = new NetworkCredential("User1", "pwd"); IFolder folder = await session.GetFolderAsync(new Uri("https://server/Library")); try { await folder.DeleteAsync(); } catch(WebDavHttpException ex) { Console.WriteLine(ex.Status.Code + " " + ex.Status.Description + " " + ex.Message); foreach(IMultistatusResponse resp in ex.Multistatus.Responses) {// Find which items failed to delete. Console.WriteLine(resp.Href + " " + resp.Status.Code + " " + resp.Status.Description); } }