Namespace: ITHit.WebDAV.Client
The IHierarchyItem type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | ActiveLocks | Array of item's lock descriptions. |
![]() | CreationDate |
The date item was created.
|
![]() | DisplayName | User friendly item name. |
![]() | Href |
This item path on the server.
|
![]() | ItemType |
Type of the item (File, Folder, Version or VersionHistory)
|
![]() | LastModified |
Most recent modification date.
|
![]() ![]() | Properties |
Custom properties retrieved by [!:IFolder.GetChildrenAsync(bool, PropertyName[])] call.
|
![]() | SupportedLock | Lock types supported by the item. |
Name | Description | |
---|---|---|
![]() ![]() | CopyToAsync |
Copies this item to destination folder.
|
![]() ![]() | DeleteAsync(IDictionaryString, String, CancellationToken) |
Deletes this item.
|
![]() | DeleteAsync(String, IDictionaryString, String, CancellationToken) |
Deletes this item.
|
![]() ![]() | DeleteAsync(LockUriTokenPair, IDictionaryString, String, CancellationToken) |
Deletes this item.
|
![]() ![]() | GetActiveLocksAsync | Obsolete.
Retrieves lock information about this item.
|
![]() ![]() | GetAllPropertiesAsync |
Retrieves all custom properties exposed by the item.
|
![]() | GetCommentAsync |
Brief comment about an item that is suitable for presentation to a user.
|
![]() | GetCreatorDisplayNameAsync |
Contains a description of the creator of the item that is suitable for presentation to a user.
|
![]() ![]() | GetParentAsync |
Retrieves parent hierarchy item of this item.
|
![]() ![]() | GetPropertyNamesAsync |
Returns names of all custom properties exposed by this item.
|
![]() ![]() | GetPropertyValuesAsync |
Retrieves values of specific properties.
|
![]() | GetSourceAsync |
Retrieves media type independent links.
|
![]() | GetSupportedLockAsync | Obsolete. Retrieves information about supported locks. |
![]() ![]() | LockAsync |
Locks the item.
|
![]() ![]() | MoveToAsync(IFolder, String, Boolean) |
Moves this item to another location.
|
![]() ![]() | MoveToAsync(IFolder, String, Boolean, LockUriTokenPair) |
Moves this item to another location.
|
![]() ![]() | RefreshAsync |
Rereads item properties from server.
|
![]() ![]() | RefreshLockAsync |
Prolongs the lock.
|
![]() ![]() | SetCommentAndAuthorAsync(String, String) |
Updates comment and author information.
|
![]() | SetCommentAndAuthorAsync(String, String, String) |
Updates comment and author information.
|
![]() ![]() | SupportedFeaturesAsync |
Gets the information about functionality supported by server (Class 1, Class 2 and so on).
|
![]() ![]() | UnlockAsync(String, IDictionaryString, String, CancellationToken) |
Remove the locks.
|
![]() | UnlockAsync(LockUriTokenPair, IDictionaryString, String, CancellationToken) |
Removes the locks. For details UnlockAsync(String, IDictionaryString, String, CancellationToken).
|
![]() ![]() | UpdatePropertiesAsync(Property, PropertyName) |
Updates values of properties exposed by this item.
|
![]() ![]() | UpdatePropertiesAsync(Property, PropertyName, String) |
Updates values of properties exposed by this item.
|
string license = "<?xml version='1.0' encoding='utf... WebDavSession session = new WebDavSession(license); session.Credentials = new NetworkCredential("User1", "pwd"); IFolder srcFolder = await session.GetFolderAsync(new Uri("https://server:8080/Library/Sales")); IFolder dstFolder = await session.GetFolderAsync(new Uri("https://server:8080/Library/")); try { await srcFolder.CopyToAsync(dstFolder, "Test1", true, false); } catch (PreconditionFailedException) { Console.WriteLine("The destination item exists and 'overwrite' was 'false'."); } catch (WebDavHttpException ex) { Console.WriteLine(ex.Message + " " + ex.Status.Code + " " + ex.Status.Description); foreach (IMultistatusResponse resp in ex.Multistatus.Responses) { // Find which items failed to move. Console.WriteLine(resp.Href + " " + resp.Status.Code + " " + resp.Status.Description); } }