IMultistatus Interface

IT Hit WebDAV for .NET

Represents information about errors occurred in different elements.

For a list of all members of this type, see IMultistatus Members.

[Visual Basic]
Public Interface IMultistatus
[C#]
public interface IMultistatus

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.

Example

 string license = "<?xml version='1.0' encoding='utf...
 WebDavSession session = new WebDavSession(license);
 session.Credentials = new NetworkCredential("User1", "pwd");
 IFolder folder = session.OpenFolder(new Uri("http://server/Library"));

 try
 {
     folder.Delete();
 }
 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);
     }
 }
 

Requirements

Namespace: ITHit.WebDAV.Client

Assembly: ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll)

See Also

IMultistatus Members | ITHit.WebDAV.Client Namespace