Click or drag to resize

IFolder 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 IFolder : IHierarchyItem, 
	IConnectionSettings

The IFolder type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleActiveLocks
Array of item's lock descriptions.
(Inherited from IHierarchyItem.)
Public propertyAllowWriteStreamBuffering
Gets or sets a value that indicates whether to buffer the data sent to server.
(Inherited from IConnectionSettings.)
Public propertyCreationDate
The date item was created.
(Inherited from IHierarchyItem.)
Public propertyDisplayName
User friendly item name.
(Inherited from IHierarchyItem.)
Public propertyHref
This item path on the server.
(Inherited from IHierarchyItem.)
Public propertyItemType
Type of the item (File, Folder, Version or VersionHistory)
(Inherited from IHierarchyItem.)
Public propertyLastModified
Most recent modification date.
(Inherited from IHierarchyItem.)
Public propertyCode exampleProperties (Inherited from IHierarchyItem.)
Public propertySendChunked
Gets or sets a value that indicates whether to send data in segments.
(Inherited from IConnectionSettings.)
Public propertySupportedLock
Lock types supported by the item.
(Inherited from IHierarchyItem.)
Public propertyTimeOut
Sets and gets time-out in milliseconds.
(Inherited from IConnectionSettings.)
Top
Methods
  NameDescription
Public methodCode exampleCopyTo(IFolder, String, Boolean, Boolean)
Copies this item to destination folder.
(Inherited from IHierarchyItem.)
Public methodCode exampleCopyTo(IFolder, String, Boolean, Boolean, LockUriTokenPair)
Copies this item to destination folder.
(Inherited from IHierarchyItem.)
Public methodCode exampleCreateFile(String)
Creates a file with a specified name.
Public methodCode exampleCreateFile(String, String)
Creates a file with specified name.
Public methodCode exampleCreateFolder(String)
Creates new folder with specified name as child of this one.
Public methodCode exampleCreateFolder(String, String)
Creates new folder with specified name as child of this one.
Public methodCode exampleCreateLockNull(String, TimeSpan, String, Boolean)
Locks name for later use.
Public methodCode exampleCreateLockNull(String, LockScope, Boolean, String, TimeSpan)
Locks name for later use.
Public methodCode exampleDelete
Deletes this item.
(Inherited from IHierarchyItem.)
Public methodDelete(String)
Deletes this item.
(Inherited from IHierarchyItem.)
Public methodCode exampleDelete(LockUriTokenPair)
Deletes this item.
(Inherited from IHierarchyItem.)
Public methodCode exampleGetActiveLocks Obsolete.
Retrieves lock information about this item.
(Inherited from IHierarchyItem.)
Public methodCode exampleGetAllProperties
Retrieves all custom properties exposed by the item.
(Inherited from IHierarchyItem.)
Public methodCode exampleGetChildren(Boolean)
Returns children of this folder.
Public methodCode exampleGetChildren(Boolean, PropertyName)
Returns children of this folder together with custom properties.
Public methodGetComment
Brief comment about an item that is suitable for presentation to a user.
(Inherited from IHierarchyItem.)
Public methodGetCreatorDisplayName
Contains a description of the creator of the item that is suitable for presentation to a user.
(Inherited from IHierarchyItem.)
Public methodCode exampleGetFile
Gets the specified file from server.
Public methodCode exampleGetFolder
Gets the specified folder from server.
Public methodCode exampleGetItem
Returns IHierarchyItem corresponding to name.
Public methodCode exampleGetParent
Retrieves parent hierarchy item of this item.
(Inherited from IHierarchyItem.)
Public methodCode exampleGetPropertyNames
Returns names of all custom properties exposed by this item.
(Inherited from IHierarchyItem.)
Public methodCode exampleGetPropertyValues
Retrieves values of specific properties.
(Inherited from IHierarchyItem.)
Public methodGetSource
Retrieves media type independent links.
(Inherited from IHierarchyItem.)
Public methodGetSupportedLock Obsolete.
Retrieves information about supported locks.
(Inherited from IHierarchyItem.)
Public methodCode exampleItemExists
Checks whether specified item exists in the folder.
Public methodCode exampleLock
Locks the item.
(Inherited from IHierarchyItem.)
Public methodCode exampleMoveTo(IFolder, String, Boolean)
Moves this item to another location.
(Inherited from IHierarchyItem.)
Public methodCode exampleMoveTo(IFolder, String, Boolean, LockUriTokenPair)
Moves this item to another location.
(Inherited from IHierarchyItem.)
Public methodCode exampleRefresh
Rereads item properties from server.
(Inherited from IHierarchyItem.)
Public methodCode exampleRefreshLock
Prolongs the lock.
(Inherited from IHierarchyItem.)
Public methodCode exampleSetCommentAndAuthor(String, String)
Updates comment and author information.
(Inherited from IHierarchyItem.)
Public methodSetCommentAndAuthor(String, String, String)
Updates comment and author information.
(Inherited from IHierarchyItem.)
Public methodCode exampleSupportedFeatures
Gets the information about functionality supported by server (Class 1, Class 2 and so on).
(Inherited from IHierarchyItem.)
Public methodCode exampleUnlock
Removes the lock.
(Inherited from IHierarchyItem.)
Public methodCode exampleUpdateProperties(Property, PropertyName)
Updates values of properties exposed by this item.
(Inherited from IHierarchyItem.)
Public methodCode exampleUpdateProperties(Property, PropertyName, String)
Updates values of properties exposed by this item.
(Inherited from IHierarchyItem.)
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...
WebDavSession session = new WebDavSession(license);
session.Credentials = new NetworkCredential("User1", "pwd");
IFolder folder = session.OpenFolder(new Uri("http://server:8080/Sales"));

IResource resource = folder.CreateResource("products.xlsx");
resource.AllowWriteStreamBuffering = false;
resource.TimeOut = 36000000; // 10 hours
resource.Upload("C:\\products.xlsx");
See Also