IFileSystemHistoryOperations

Namespace: TagBites.IO.Operations
Assembly: TagBites.IO.dll

Provides a mechanism for file history operations for TagBites.IO.FileSystem.

public abstract interface IFileSystemHistoryOperations

Methods

Creates a file version for specified file version link.

public IFileVersionLinkInfo CreateFileVersion(FileVersionLink file, Stream stream)

Result Type: IFileVersionLinkInfo

Parameters

TypeName
FileVersionLinkfileThe handle for the file version being created.
StreamstreamThe stream to which the contents of the current file version will be created.

Deletes the specified file version.

public void DeleteFileVersion(FileVersionLink file)

Result Type: void

Parameters

TypeName
FileVersionLinkfileThe link to the file version being deleted.

GetFileVersionInfo(string, DateTime)

Returns information about a file version for the specified file and modification date.

public IFileVersionLinkInfo GetFileVersionInfo(string fullName, DateTime modifyTime)

Result Type: IFileVersionLinkInfo

Parameters

TypeName
stringfullNameThe full path of the fle.
DateTimemodifyTimeThe of a file modification.

Retrieves a collection of file versions since specified date time.

public IList<IFileVersionLinkInfo> GetFileVersions(FileLink file, DateTime? since)

Result Type: IList<IFileVersionLinkInfo>

Parameters

TypeName
FileLinkfileThe link to the file.
DateTime?<DateTime>sinceA since which the file version are retrieving.

Determines whether a file version has access to read.

public bool HasReadAccess(FileVersionLink link)

Result Type: bool

Parameters

TypeName
FileVersionLinklinkThe handle for the file version being checked.

Determines whether a file version has access to written.

public bool HasWriteAccess(FileVersionLink link)

Result Type: bool

Parameters

TypeName
FileVersionLinklinkhe handle for the file version being checked.

Reads the specified file version.

public Stream ReadFileVersion(FileVersionLink file)

Result Type: Stream

Parameters

TypeName
FileVersionLinkfileThe link to the file version to be opened for reading.