WebDavSession Class

IT Hit WebDAV for .NET

Session for accessing WebDAV servers.

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

System.Object
   ITHit.WebDAV.Client.WebDavSession

[Visual Basic]
Public Class WebDavSession
    Implements IConnectionSettings
[C#]
public class WebDavSession : IConnectionSettings

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

 string license = "<?xml version='1.0' encoding='utf...
 WebDavSession session = new WebDavSession(license);
 session.Credentials = new NetworkCredential("User1", "pwd");

 IFolder folder = null;
 try
 {
     folder = session.OpenFolder(new Uri("http://server:8080/Products"));
 }
 catch(UnauthorizedException)
 {
     Console.WriteLine("Incorrect user name or password.");
 }
 catch(NotFoundException)
 {
     Console.WriteLine("Folder not found.");
 }

 if(folder!=null)
 {
     Console.WriteLine(folder.LastModified.ToString());
 }
 

Requirements

Namespace: ITHit.WebDAV.Client

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

See Also

WebDavSession Members | ITHit.WebDAV.Client Namespace