Click or drag to resize

IMultistatusResponseAsync Interface

IT Hit WebDAV Classes Reference
Represents error occurred in one element.

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 2.0.420.0
Syntax
public interface IMultistatusResponseAsync

The IMultistatusResponseAsync type exposes the following members.

Properties
  NameDescription
Public propertyDescription
Description of error, if available.
Public propertyHref
Url of the item.
Public propertyStatus
HTTP Status of the operation.
Top
Remarks
This interface represents an individual description of an error in the list of errors returned by server. It provides the means for finding HTTP status, url and description of each copy, move or delete operation.
Examples
string license = "<?xml version='1.0' encoding='utf...
WebDavSessionAsync session = new WebDavSessionAsync(license);
session.Credentials = new NetworkCredential("User1", "pwd");
IFolderAsync folder = await session.OpenFolderAsync(new Uri("http://server/Library"));

try
{
    await folder.DeleteAsync();
}
catch(WebDavHttpException ex)
{ 
    Console.WriteLine(ex.Status.Code + " " + ex.Status.Description + " " + ex.Message);
    foreach(IMultistatusResponseAsync resp in ex.Multistatus.Responses)
    {// Find which items failed to delete.
        Console.WriteLine(resp.Href + " " + resp.Status.Code + " " + resp.Status.Description);
    }
}
See Also