Class WebDAV
Facilitates read-only tasks with WebDAV compliant SVN server. This class is NOT thread-safe
Inheritance
System.Object
    WebDAV
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
  Namespace: NFX.IO.FileSystem.SVN
Assembly: NFX.Web.dll
Syntax
public sealed class WebDAV
  Constructors
WebDAV(String, Int32, String, String, WebDAV.Version)
Declaration
public WebDAV(string rootURL, int timeoutMs = 0, string uName = null, string uPwd = null, WebDAV.Version version = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | rootURL | |
| System.Int32 | timeoutMs | |
| System.String | uName | |
| System.String | uPwd | |
| WebDAV.Version | version | 
Properties
CurrentVersion
Get or sets current version
Declaration
public WebDAV.Version CurrentVersion { get; set; }
  Property Value
| Type | Description | 
|---|---|
| WebDAV.Version | 
Root
Returns top-level directory as of root Uri mount point
Declaration
public WebDAV.Directory Root { get; }
  Property Value
| Type | Description | 
|---|---|
| WebDAV.Directory | 
RootUri
The top-most URL of the remote repository
Declaration
public Uri RootUri { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Uri | 
TimeoutMs
Gets timeout for call, if zero then actual timeout is taken from WebSettings
Declaration
public int TimeoutMs { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
UName
Gets current user name or empty when user is not set
Declaration
public string UName { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
UPwd
Gets current user password or empty when user is not set
Declaration
public string UPwd { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Methods
GetAbsoluteItemPath(WebDAV.Item)
Returns the absolute path of the item
Declaration
public string GetAbsoluteItemPath(WebDAV.Item item)
  Parameters
| Type | Name | Description | 
|---|---|---|
| WebDAV.Item | item | 
Returns
| Type | Description | 
|---|---|
| System.String | 
GetHeadRootVersion()
Retrieves the latest head version
Declaration
public WebDAV.Version GetHeadRootVersion()
  Returns
| Type | Description | 
|---|---|
| WebDAV.Version | 
GetVersions(String, String, String)
Retrieves a list of versions contained in the remote Dav catalog
Declaration
public static IEnumerable<WebDAV.Version> GetVersions(string rootURL, string uName, string uPwd)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | rootURL | |
| System.String | uName | |
| System.String | uPwd | 
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<WebDAV.Version> | 
ListVersions(String, String, Nullable<Int32>)
Lists the specified number of versions contained in remote Dav catalog
Declaration
public List<WebDAV.Version> ListVersions(string startVersion = "1", string endVersion = null, int ? limit = default (int ? ))
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | startVersion | |
| System.String | endVersion | |
| System.Nullable<System.Int32> | limit | 
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.List<WebDAV.Version> | 
Refresh()
Refreshes the state of the object by purging cached items (forgets root dir)
Declaration
public void Refresh()
  ToString()
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| System.String | 
Overrides
System.Object.ToString()