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
CreateFileVersion(FileVersionLink, Stream)
Creates a file version for specified file version link.
public IFileVersionLinkInfo CreateFileVersion(FileVersionLink file, Stream stream)
Result Type: IFileVersionLinkInfo
Parameters
Type | Name | |
---|---|---|
FileVersionLink | file | The handle for the file version being created. |
Stream | stream | The stream to which the contents of the current file version will be created. |
DeleteFileVersion(FileVersionLink)
Deletes the specified file version.
public void DeleteFileVersion(FileVersionLink file)
Result Type: void
Parameters
Type | Name | |
---|---|---|
FileVersionLink | file | The 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
Type | Name | |
---|---|---|
string | fullName | The full path of the fle. |
DateTime | modifyTime | The of a file modification. |
GetFileVersions(FileLink, DateTime?)
Retrieves a collection of file versions since specified date time.
public IList<IFileVersionLinkInfo> GetFileVersions(FileLink file, DateTime? since)
Result Type: IList<IFileVersionLinkInfo>
Parameters
Type | Name | |
---|---|---|
FileLink | file | The link to the file. |
DateTime?<DateTime> | since | A since which the file version are retrieving. |
HasReadAccess(FileVersionLink)
Determines whether a file version has access to read.
public bool HasReadAccess(FileVersionLink link)
Result Type: bool
Parameters
Type | Name | |
---|---|---|
FileVersionLink | link | The handle for the file version being checked. |
HasWriteAccess(FileVersionLink)
Determines whether a file version has access to written.
public bool HasWriteAccess(FileVersionLink link)
Result Type: bool
Parameters
Type | Name | |
---|---|---|
FileVersionLink | link | he handle for the file version being checked. |
ReadFileVersion(FileVersionLink)
Reads the specified file version.
public Stream ReadFileVersion(FileVersionLink file)
Result Type: Stream
Parameters
Type | Name | |
---|---|---|
FileVersionLink | file | The link to the file version to be opened for reading. |