Click or drag to resize

IMultistatus Interface

IT Hit WebDAV Classes Reference
Represents information about errors occurred in different elements.

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntax
public interface IMultistatus

The IMultistatus type exposes the following members.

Properties
  NameDescription
Public propertyDescription
Gets the generic description, if available.
Public propertyResponses
Array of the errors returned by server.
Top
Remarks
The Responses property of this class provides access to the array of descriptions of each individual operation that occurred on server. The Description property provides total description of all failed operations.
Examples
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);
    }
}
See Also