IFileSystemHistoryOperations
Namespace: TagBites.IO.Operations
Assembly: TagBites.IO.dll
Product: TagBites.IO v. 2.0.0
Provides the file history operations of a FileSystem.
public interface IFileSystemHistoryOperationsMethods
Section titled “Methods”DeleteFileVersion(FileVersionLink)
Section titled “DeleteFileVersion(FileVersionLink)”Deletes the specified file version.
public virtual void DeleteFileVersion(FileVersionLink file)Parameters
Section titled “Parameters”fileFileVersionLink
The link to the file version being deleted.
GetFileVersionInfo(FileLink, DateTime)
Section titled “GetFileVersionInfo(FileLink, DateTime)”Returns information about a file version for the specified file and modification date.
public virtual IFileVersionLinkInfo GetFileVersionInfo(FileLink file, DateTime modifyTime)Parameters
Section titled “Parameters”Returns
Section titled “Returns”A IFileVersionLinkInfo object representing a file version.
GetFileVersions(FileLink)
Section titled “GetFileVersions(FileLink)”Retrieves a collection of file versions since specified date time.
public virtual IList<IFileVersionLinkInfo> GetFileVersions(FileLink file)Parameters
Section titled “Parameters”fileFileLink
The link to the file.
Returns
Section titled “Returns”A collection of strongly typed IFileVersionLinkInfo objects representing the file versions since specified date time.
HasReadAccess(FileVersionLink)
Section titled “HasReadAccess(FileVersionLink)”Determines whether a file version has access to read.
public virtual bool HasReadAccess(FileVersionLink link)Parameters
Section titled “Parameters”linkFileVersionLink
The handle for the file version being checked.
Returns
Section titled “Returns”true if the file version can be read; otherwise, false.
HasWriteAccess(FileVersionLink)
Section titled “HasWriteAccess(FileVersionLink)”Determines whether a file version has access to written.
public virtual bool HasWriteAccess(FileVersionLink link)Parameters
Section titled “Parameters”linkFileVersionLink
he handle for the file version being checked.
Returns
Section titled “Returns”true if the file version can be written; otherwise, false.
ReadFileVersion(FileVersionLink)
Section titled “ReadFileVersion(FileVersionLink)”Reads the specified file version.
public virtual Stream ReadFileVersion(FileVersionLink file)Parameters
Section titled “Parameters”fileFileVersionLink
The link to the file version to be opened for reading.
Returns
Section titled “Returns”A read-only Stream for the specified file version.