Namespace: ITHit.WebDAV.Client
The WebDavSession type exposes the following members.
| Name | Description | |
|---|---|---|
| ClientCertificates |
Gets collection of certificates which will be attached to every request.
| |
| ContentEncoding |
Gets or sets the HTTP character set of the output stream.
| |
| CookieContainer |
Cookies which will be added to all requests.
| |
| Credentials |
Sets and gets credentials for connection.
| |
| CustomHeaders |
Custom user headers which will be added to all requests.
| |
| Expect100Continue |
Determines if header "Expect: 100-continue" will be sent with all request. Default value is true | |
| IIS6SSLSupport |
Fixes urls for IIS 6 build-in WebDAV SSL connections.
| |
| TimeOut |
Sets and gets time-out in milliseconds.
|
| Name | Description | |
|---|---|---|
| CreateFolderAsync |
Creates a new folder.
| |
| DeleteAsync |
Deletes an item.
| |
| Dispose | Releases all resources used by the WebDavSession | |
| Dispose(Boolean) | Releases the unmanaged resources used by the WebDavSession and optionally releases the managed resources | |
| DownloadAsync |
Loads a file or a part of the content of the file from WebDAV server.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| ExistsAsync(String, IDictionaryString, String, CancellationToken) |
Checks whether specified path exists.
| |
| ExistsAsync(Uri, IDictionaryString, String, CancellationToken) |
Checks whether specified uri exists.
| |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetChangesAsync |
Returns a list of changes that correspond to a synchronization request.
| |
| GetChildrenAsync |
Enumerates children of the specified folder.
| |
| GetFileAsync(String, IDictionaryString, String, CancellationToken) |
Returns IFile corresponding to path.
| |
| GetFileAsync(Uri, IDictionaryString, String, CancellationToken) |
Returns IFile corresponding to path.
| |
| GetFolderAsync(String, IDictionaryString, String, CancellationToken) |
Returns IFolder corresponding to path.
| |
| GetFolderAsync(Uri, IDictionaryString, String, CancellationToken) |
Returns IFolder corresponding to path.
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetItemAsync(String, IDictionaryString, String, CancellationToken) |
Returns IHierarchyItem corresponding to path.
| |
| GetItemAsync(Uri, IDictionaryString, String, CancellationToken) |
Returns IHierarchyItem corresponding to path.
| |
| GetItemAsync(Uri, PropertyName, IDictionaryString, String, CancellationToken) |
Returns IHierarchyItem corresponding to path.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetVersionAsync(String, IDictionaryString, String, CancellationToken) |
Returns IVersion corresponding to path.
| |
| GetVersionAsync(Uri, IDictionaryString, String, CancellationToken) |
Returns IVersion corresponding to path.
| |
| LockAsync |
Locks an item.
| |
| LogWebDavError(WebDavErrorEventArgs) |
Rises the WebDavError event.
| |
| LogWebDavError(WebDavException) |
Rises the WebDavError event.
| |
| LogWebDavMessage |
Rises the WebDavMessage event.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| MoveToAsync |
Moves an item to a new location.
| |
| OnWebDavError |
Rises the WebDavError event.
| |
| OnWebDavMessage |
Rises the WebDavMessage event.
| |
| RefreshLockAsync |
Prolongs the lock.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| UnlockAsync |
Unlocks an item.
| |
| UploadAsync |
Prepares a request to create or update a file.
|
| Name | Description | |
|---|---|---|
| WebDavError |
Event fired when any error occurs during the request.
Fired before the library throws the exception.
| |
| WebDavMessage |
Event fired when a new log data available during the request.
|
string license = "<?xml version='1.0' encoding='utf... WebDavSession session = new WebDavSession(license, new HttpClientHandler() { Credentials = new NetworkCredential("User1", "pwd")}); IFolder folder = null; try { folder = await session.GetFolderAsync(new Uri("https://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()); }