Click or drag to resize

IFolderAsync Interface

IT Hit WebDAV Classes Reference
Represents a folder in a WebDAV repository.

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 2.0.420.0
Syntax
public interface IFolderAsync : IHierarchyItemAsync, 
	IConnectionSettingsAsync

The IFolderAsync type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleActiveLocks
Array of item's lock descriptions.
(Inherited from IHierarchyItemAsync.)
Public propertyAllowWriteStreamBuffering
Gets or sets a value that indicates whether to buffer the data sent to server.
(Inherited from IConnectionSettingsAsync.)
Public propertyCreationDate
The date item was created.
(Inherited from IHierarchyItemAsync.)
Public propertyDisplayName
User friendly item name.
(Inherited from IHierarchyItemAsync.)
Public propertyHref
This item path on the server.
(Inherited from IHierarchyItemAsync.)
Public propertyItemType
Type of the item (File, Folder, Version or VersionHistory)
(Inherited from IHierarchyItemAsync.)
Public propertyLastModified
Most recent modification date.
(Inherited from IHierarchyItemAsync.)
Public propertyCode exampleProperties (Inherited from IHierarchyItemAsync.)
Public propertySendChunked
Gets or sets a value that indicates whether to send data in segments.
(Inherited from IConnectionSettingsAsync.)
Public propertySupportedLock
Lock types supported by the item.
(Inherited from IHierarchyItemAsync.)
Public propertyTimeOut
Sets and gets time-out in milliseconds.
(Inherited from IConnectionSettingsAsync.)
Top
Methods
  NameDescription
Public methodCode exampleCopyToAsync(IFolderAsync, String, Boolean, Boolean)
Copies this item to destination folder.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleCopyToAsync(IFolderAsync, String, Boolean, Boolean, LockUriTokenPair)
Copies this item to destination folder.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleCreateFileAsync(String)
Creates a file with a specified name.
Public methodCode exampleCreateFileAsync(String, String)
Creates a file with specified name.
Public methodCode exampleCreateFolderAsync(String)
Creates new folder with specified name as child of this one.
Public methodCode exampleCreateFolderAsync(String, String)
Creates new folder with specified name as child of this one.
Public methodCode exampleCreateLockNullAsync(String, TimeSpan, String, Boolean)
Locks name for later use.
Public methodCode exampleCreateLockNullAsync(String, LockScope, Boolean, String, TimeSpan)
Locks name for later use.
Public methodCode exampleDeleteAsync
Deletes this item.
(Inherited from IHierarchyItemAsync.)
Public methodDeleteAsync(String)
Deletes this item.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleDeleteAsync(LockUriTokenPair)
Deletes this item.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleGetActiveLocksAsync Obsolete.
Retrieves lock information about this item.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleGetAllPropertiesAsync
Retrieves all custom properties exposed by the item.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleGetChildrenAsync(Boolean)
Returns children of this folder.
Public methodCode exampleGetChildrenAsync(Boolean, PropertyName)
Returns children of this folder together with custom properties.
Public methodGetCommentAsync
Brief comment about an item that is suitable for presentation to a user.
(Inherited from IHierarchyItemAsync.)
Public methodGetCreatorDisplayNameAsync
Contains a description of the creator of the item that is suitable for presentation to a user.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleGetFileAsync
Gets the specified file from server.
Public methodCode exampleGetFolderAsync
Gets the specified folder from server.
Public methodCode exampleGetItemAsync
Returns IHierarchyItemAsync corresponding to name.
Public methodCode exampleGetParentAsync
Retrieves parent hierarchy item of this item.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleGetPropertyNamesAsync
Returns names of all custom properties exposed by this item.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleGetPropertyValuesAsync
Retrieves values of specific properties.
(Inherited from IHierarchyItemAsync.)
Public methodGetSourceAsync
Retrieves media type independent links.
(Inherited from IHierarchyItemAsync.)
Public methodGetSupportedLockAsync Obsolete.
Retrieves information about supported locks.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleItemExistsAsync
Checks whether specified item exists in the folder.
Public methodCode exampleLockAsync
Locks the item.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleMoveToAsync(IFolderAsync, String, Boolean)
Moves this item to another location.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleMoveToAsync(IFolderAsync, String, Boolean, LockUriTokenPair)
Moves this item to another location.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleRefreshAsync
Rereads item properties from server.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleRefreshLockAsync
Prolongs the lock.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleSetCommentAndAuthorAsync(String, String)
Updates comment and author information.
(Inherited from IHierarchyItemAsync.)
Public methodSetCommentAndAuthorAsync(String, String, String)
Updates comment and author information.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleSupportedFeaturesAsync
Gets the information about functionality supported by server (Class 1, Class 2 and so on).
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleUnlockAsync
Removes the lock.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleUpdatePropertiesAsync(Property, PropertyName)
Updates values of properties exposed by this item.
(Inherited from IHierarchyItemAsync.)
Public methodCode exampleUpdatePropertiesAsync(Property, PropertyName, String)
Updates values of properties exposed by this item.
(Inherited from IHierarchyItemAsync.)
Top
Examples
The following example demonstrates how to upload a file from local file system to a WebDAV server.
string license = "<?xml version='1.0' encoding='utf...
WebDavSessionAsync session = new WebDavSessionAsync(license);
session.Credentials = new NetworkCredential("User1", "pwd");
IFolderAsync folder = await session.OpenFolderAsync(new Uri("http://server:8080/Sales"));

IFileAsync file = await folder.CreateFileAsync("products.xlsx");
file.AllowWriteStreamBuffering = false;
file.TimeOut = 36000000; // 10 hours
await file.UploadAsync("C:\\products.xlsx");
See Also