Namespace: ITHit.WebDAV.Client
The IResource type exposes the following members.
Name | Description | |
---|---|---|
ActiveLocks | Array of item's lock descriptions. (Inherited from IHierarchyItem.) | |
AllowWriteStreamBuffering |
Gets or sets a value that indicates whether to buffer the data sent to server.
(Inherited from IConnectionSettings.) | |
CheckedOut | Provides information whether item is in checked-in or checked-out state. | |
Comment |
Brief comment about an item that is suitable for presentation to a user.
(Inherited from IHierarchyItem.) | |
ContentLength |
Length of the resource.
(Inherited from IItemContent.) | |
ContentType |
Content type of the resource.
(Inherited from IItemContent.) | |
CreationDate |
The date item was created.
(Inherited from IHierarchyItem.) | |
CreatorDisplayName |
Contains a description of the creator of the item that is suitable for presentation to a user.
(Inherited from IHierarchyItem.) | |
DisplayName | User friendly item name. (Inherited from IHierarchyItem.) | |
Etag |
Gets entity tag - string that identifies current state of resource's content.
(Inherited from IItemContent.) | |
Href |
This item path on the server.
(Inherited from IHierarchyItem.) | |
ItemType |
Type of the item (Resource, Folder, Version or VersionHistory)
(Inherited from IHierarchyItem.) | |
LastModified |
Most recent modification date.
(Inherited from IHierarchyItem.) | |
Properties |
Custom properties retrieved by GetChildren(Boolean, PropertyName) call.
(Inherited from IHierarchyItem.) | |
ResumableUpload |
Returns instance of IResumableUpload to manage partially failed uploads.
(Inherited from IItemContent.) | |
SendChunked |
Gets or sets a value that indicates whether to send data in segments.
(Inherited from IConnectionSettings.) | |
SupportedLock | Lock types supported by the item. (Inherited from IHierarchyItem.) | |
TimeOut |
Sets and gets time-out in milliseconds.
(Inherited from IConnectionSettings.) | |
VersionControlled | Provides information whether item is under version control. |
Name | Description | |
---|---|---|
CheckIn |
Creates new version.
| |
CheckIn(String) |
Creates new version.
| |
CheckOut |
Allow modifications to the content and custom properties of this version-controlled resource.
| |
CheckOut(String) |
Allow modifications to the content and custom properties of this version-controlled resource.
| |
CopyTo(IFolder, String, Boolean, Boolean) |
Copies this item to destination folder.
(Inherited from IHierarchyItem.) | |
CopyTo(IFolder, String, Boolean, Boolean, LockUriTokenPair) |
Copies this item to destination folder.
(Inherited from IHierarchyItem.) | |
Delete |
Deletes this item.
(Inherited from IHierarchyItem.) | |
Delete(String) |
Deletes this item.
(Inherited from IHierarchyItem.) | |
Delete(LockUriTokenPair) |
Deletes this item.
(Inherited from IHierarchyItem.) | |
Download |
Downloads content of the resource to a file specified by filename (Inherited from IItemContent.) | |
GetActiveLocks | Obsolete.
Retrieves lock information about this item.
(Inherited from IHierarchyItem.) | |
GetAllProperties |
Retrieves all custom properties exposed by the item.
(Inherited from IHierarchyItem.) | |
GetAutoVersion |
Determines how checked-in item responds to WebDAV client attempts to modify its content or properties.
| |
GetCurrentVersion | Current item version. Null, if item is not under version control. | |
GetParent |
Retrieves parent hierarchy item of this item.
(Inherited from IHierarchyItem.) | |
GetPropertyNames |
Returns names of all custom properties exposed by this item.
(Inherited from IHierarchyItem.) | |
GetPropertyValues |
Retrieves values of specific properties.
(Inherited from IHierarchyItem.) | |
GetReadStream |
Loads content of the resource from WebDAV server.
(Inherited from IItemContent.) | |
GetReadStream(Int64, Int64) |
Loads part of the content of the resource from WebDAV server.
(Inherited from IItemContent.) | |
GetReadStream(Int64, Int64, DateTime, Boolean) |
Loads part of the content of the resource from WebDAV server using lastModifiedUtc
to ensure the content is up-to-date.
(Inherited from IItemContent.) | |
GetReadStream(Int64, Int64, String, Boolean) |
Loads part of the content of the resource from WebDAV server using eTag to
ensure the content is up-to-date.
(Inherited from IItemContent.) | |
GetSource |
Retrieves media type independent links.
(Inherited from IHierarchyItem.) | |
GetSupportedLock | Obsolete. Retrieves information about supported locks. (Inherited from IHierarchyItem.) | |
GetVersions | Retrieves list of all versions for this resource. | |
GetWriteStream(Int64) |
Saves resource's content to WebDAV server.
(Inherited from IItemContent.) | |
GetWriteStream(String, Int64) |
Saves resource's content to WebDAV server.
(Inherited from IItemContent.) | |
GetWriteStream(String, Int64, String) |
Saves resource's content to WebDAV server.
(Inherited from IItemContent.) | |
IsCheckedOut | Obsolete. Determines whether item is in checked-in or checked-out state. | |
IsVersionControlled | Obsolete. Determines whether item is under version control. | |
Lock |
Locks the item.
(Inherited from IHierarchyItem.) | |
MoveTo(IFolder, String, Boolean) |
Moves this item to another location.
(Inherited from IHierarchyItem.) | |
MoveTo(IFolder, String, Boolean, LockUriTokenPair) |
Moves this item to another location.
(Inherited from IHierarchyItem.) | |
PutUnderVersionControl(Boolean) | Enables / disables version control for this resource. | |
PutUnderVersionControl(Boolean, String) |
Enables / disables version control for this resource.
| |
Refresh |
Rereads item properties from server.
(Inherited from IHierarchyItem.) | |
RefreshLock |
Prolongs the lock.
(Inherited from IHierarchyItem.) | |
SetAutoVersion(AutoVersion) |
Sets how checked-in item responds to WebDAV client attempts to modify its content or properties.
| |
SetAutoVersion(AutoVersion, String) |
Sets how checked-in item responds to WebDAV client attempts to modify its content or properties.
| |
SetCommentAndAuthor(String, String) |
Updates comment and author information.
(Inherited from IHierarchyItem.) | |
SetCommentAndAuthor(String, String, String) |
Updates comment and author information.
(Inherited from IHierarchyItem.) | |
SupportedFeatures |
Gets the information about functionality supported by server (Class 1, Class 2 and so on).
(Inherited from IHierarchyItem.) | |
UnCheckOut |
Cancels the CHECKOUT and restore the pre-CHECKOUT state of the version-controlled resource.
| |
UnCheckOut(String) |
Cancels the CHECKOUT and restore the pre-CHECKOUT state of the version-controlled resource.
| |
Unlock |
Removes the lock.
(Inherited from IHierarchyItem.) | |
UpdateProperties(Property, PropertyName) |
Updates values of properties exposed by this item.
(Inherited from IHierarchyItem.) | |
UpdateProperties(Property, PropertyName, String) |
Updates values of properties exposed by this item.
(Inherited from IHierarchyItem.) | |
UpdateToVersion(IVersion) |
Updates content and dead properties of item to those identified by version.
| |
UpdateToVersion(IVersion, String) |
Updates content and dead properties of item to those identified by version.
| |
Upload(String) |
Uploads content of a file specified by filename to the server
(Inherited from IItemContent.) | |
Upload(String, String) |
Uploads content of a file specified by filename to the server
(Inherited from IItemContent.) |
string license = "<?xml version='1.0' encoding='utf... WebDavSession session = new WebDavSession(license); session.Credentials = new NetworkCredential("User1", "pwd"); IResource resource = session.OpenResource("http://server:8080/Products/image.gif"); resource.TimeOut = 36000000; // 10 hours using (Stream webStream = resource.GetReadStream()) { int bufSize = 1048576; // 1Mb byte[] buffer = new byte[bufSize]; int bytesRead = 0; using (FileStream fileStream = File.OpenWrite(resource.DisplayName)) { while ((bytesRead = webStream.Read(buffer, 0, bufSize)) > 0) fileStream.Write(buffer, 0, bytesRead); } }