Namespace: ITHit.WebDAV.Client
The IHierarchyItemAsync type exposes the following members.
Name | Description | |
---|---|---|
ActiveLocks | Array of item's lock descriptions. | |
AllowWriteStreamBuffering |
Gets or sets a value that indicates whether to buffer the data sent to server.
(Inherited from IConnectionSettingsAsync.) | |
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 GetChildrenAsync(Boolean, PropertyName) call.
| |
SendChunked |
Gets or sets a value that indicates whether to send data in segments.
(Inherited from IConnectionSettingsAsync.) | |
SupportedLock | Lock types supported by the item. | |
TimeOut |
Sets and gets time-out in milliseconds.
(Inherited from IConnectionSettingsAsync.) |
Name | Description | |
---|---|---|
CopyToAsync(IFolderAsync, String, Boolean, Boolean) |
Copies this item to destination folder.
| |
CopyToAsync(IFolderAsync, String, Boolean, Boolean, LockUriTokenPair) |
Copies this item to destination folder.
| |
DeleteAsync |
Deletes this item.
| |
DeleteAsync(String) |
Deletes this item.
| |
DeleteAsync(LockUriTokenPair) |
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(IFolderAsync, String, Boolean) |
Moves this item to another location.
| |
MoveToAsync(IFolderAsync, 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 |
Removes the lock.
| |
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... WebDavSessionAsync session = new WebDavSessionAsync(license); session.Credentials = new NetworkCredential("User1", "pwd"); IFolderAsync srcFolder = await session.OpenFolderAsync(new Uri("http://server:8080/Library/Sales")); IFolderAsync dstFolder = await session.OpenFolderAsync(new Uri("http://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 (IMultistatusResponseAsync resp in ex.Multistatus.Responses) { // Find which items failed to move. Console.WriteLine(resp.Href + " " + resp.Status.Code + " " + resp.Status.Description); } }