IFileSystemAsyncHistoryOperations
Namespace: TagBites.IO.Operations
Assembly: TagBites.IO.dll
Product: TagBites.IO v. 2.0.0
Provides the asynchronous file history operations of a FileSystem.
public interface IFileSystemAsyncHistoryOperationsMethods
Section titled “Methods”DeleteFileVersionAsync(FileVersionLink)
Section titled “DeleteFileVersionAsync(FileVersionLink)”Asynchronously deletes the specified file version.
public virtual Task DeleteFileVersionAsync(FileVersionLink file)Parameters
Section titled “Parameters”fileFileVersionLink
The link to the file version being deleted.
Returns
Section titled “Returns”The task object representing the asynchronous operation.
GetFileVersionInfoAsync(FileLink, DateTime)
Section titled “GetFileVersionInfoAsync(FileLink, DateTime)”Returns information about a file version for the specified file and modification date.
public virtual Task<IFileVersionLinkInfo> GetFileVersionInfoAsync(FileLink file, DateTime modifyTime)Parameters
Section titled “Parameters”Returns
Section titled “Returns”A Task of IFileVersionLinkInfo object representing a file version.
GetFileVersionsAsync(FileLink)
Section titled “GetFileVersionsAsync(FileLink)”Asynchronously retrieves a collection of the file versions since specified date time.
public virtual Task<IList<IFileVersionLinkInfo>> GetFileVersionsAsync(FileLink file)Parameters
Section titled “Parameters”fileFileLink
The link to the file.
Returns
Section titled “Returns”Task<IList<IFileVersionLinkInfo>>
The task object representing the asynchronous operation. The value of the parameter contains A collection of strongly typed IFileVersionLinkInfo objects representing information the files 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
The handle for the file version being checked.
Returns
Section titled “Returns”true if the file version can be written; otherwise, false.
ReadFileVersionAsync(FileVersionLink)
Section titled “ReadFileVersionAsync(FileVersionLink)”Asynchronously opens an existing file version to read.
public virtual Task<Stream> ReadFileVersionAsync(FileVersionLink file)Parameters
Section titled “Parameters”fileFileVersionLink
The link to the file version to be opened for reading.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains a read-only Stream for the specified file version.