Click or drag to resize

IFile Interface

IT Hit WebDAV Classes Reference
Represents a file in the WebDAV repository.

Namespace: ITHit.WebDAV.Server.Class1
Assembly: ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 4.5.3121.0
Syntax
public interface IFile : IHierarchyItem, IContent

The IFile type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleContentLength
Gets the size of the file content in bytes.
(Inherited from IContent.)
Public propertyCode exampleContentType
Gets the media type of the file.
(Inherited from IContent.)
Public propertyCode exampleCreated
Gets the creation date of the item in repository expressed as the coordinated universal time (UTC).
(Inherited from IHierarchyItem.)
Public propertyCode exampleEtag
Gets entity tag - string that identifies current state of resource's content.
(Inherited from IContent.)
Public propertyCode exampleModified
Gets the last modification date of the item in repository expressed as the coordinated universal time (UTC).
(Inherited from IHierarchyItem.)
Public propertyCode exampleName
Gets the name of the item in repository.
(Inherited from IHierarchyItem.)
Public propertyCode examplePath
Unique item path in the repository relative to storage root.
(Inherited from IHierarchyItem.)
Top
Methods
  NameDescription
Public methodCode exampleCopyTo
Creates a copy of this item with a new name in the destination folder.
(Inherited from IHierarchyItem.)
Public methodCode exampleDelete
Deletes this item.
(Inherited from IHierarchyItem.)
Public methodCode exampleGetProperties
Gets values of all properties or selected properties for this item.
(Inherited from IHierarchyItem.)
Public methodCode exampleGetPropertyNames
Gets names of all properties for this item.
(Inherited from IHierarchyItem.)
Public methodCode exampleMoveTo
Moves this item to the destination folder under a new name.
(Inherited from IHierarchyItem.)
Public methodCode exampleRead
Reads the file content from the repository and writes it to the specified stream.
(Inherited from IContent.)
Public methodCode exampleUpdateProperties
Adds, modifies and removes properties for this item.
(Inherited from IHierarchyItem.)
Public methodCode exampleWrite
Saves the content of the file from the specified stream to the WebDAV repository.
(Inherited from IContent.)
Top
Remarks
This interface represents a file in a repository. This is a marker interface derived from IContent and IHierarchyItem, it does not add any additional properties or methods. ContentType property must return the MIME type of the file.
See Also