FileVersionLink
Namespace: TagBites.IO
Assembly: TagBites.IO.dll
Product: TagBites.IO v. 2.0.0
Provides a mechanism for linking to the file version. This class cannot be inherited.
public sealed class FileVersionLink : TagBites.IO.IFileResourceLink, TagBites.IO.IFileSystemLinkInheritance: object → FileVersionLink
Properties
Section titled “Properties”Gets a container to store user’s metadata.
public virtual FileSystemLinkBag Bag { get; }Property Value
Section titled “Property Value”CanRead
Section titled “CanRead”Gets a value indicating whether the file version can be read.
public virtual bool CanRead { get; }Property Value
Section titled “Property Value”true if the file version can be read; otherwise, false.
CanWrite
Section titled “CanWrite”Gets a value indicating whether the file version can be written.
public virtual bool CanWrite { get; }Property Value
Section titled “Property Value”true if the file version can be written; otherwise, false.
ContentPath
Section titled “ContentPath”Gets a string representing the path to the content of the file version.
public virtual string ContentPath { get; }Property Value
Section titled “Property Value”A string representing the path to the content of the file version.
CreationTime
Section titled “CreationTime”Gets the creation time of the file version.
public DateTime CreationTime { get; }Property Value
Section titled “Property Value”The creation time of the file version.
Exists
Section titled “Exists”Gets a value indicating whether the file version exists.
public virtual bool Exists { get; }Property Value
Section titled “Property Value”true if the file version exists; otherwise, false.
Extension
Section titled “Extension”Gets the extension part of the file version.
public virtual string Extension { get; }Property Value
Section titled “Property Value”A string containing the extension part of the file version.
FileSystem
Section titled “FileSystem”Gets a file system to which the file/directory/file version belongs.
public virtual FileSystem FileSystem { get; }Property Value
Section titled “Property Value”A FileSystem object representing file system to which the file/directory/file version belongs.
FullName
Section titled “FullName”Gets the full path of the file version.
public virtual string FullName { get; }Property Value
Section titled “Property Value”A String containing the full path of the file version.
Gets the hash value for the file version.
public virtual FileHash Hash { get; }Property Value
Section titled “Property Value”A FileHash object representing hash value for the file version.
Gets information about file version.
public IFileVersionLinkInfo Info { get; }Property Value
Section titled “Property Value”A IFileVersionLinkInfo object representing information about a file version.
IsReadOnly
Section titled “IsReadOnly”Gets a value indicating whether the file version is read only.
public virtual bool IsReadOnly { get; }Property Value
Section titled “Property Value”true if the file version is read only; otherwise, false.
Length
Section titled “Length”Gets the size, in bytes, of the file version.
public virtual long Length { get; }Property Value
Section titled “Property Value”The size of the file version in bytes.
ModifyTime
Section titled “ModifyTime”Gets the time when the current file version was last modified.
public DateTime ModifyTime { get; }Property Value
Section titled “Property Value”The time the current file version was last modified.
Gets the name of the file version.
public virtual string Name { get; }Property Value
Section titled “Property Value”A String that is the name of a file version, including the file version name extension.
NameWithoutExtension
Section titled “NameWithoutExtension”Gets the name without extension part of the file version.
public virtual string NameWithoutExtension { get; }Property Value
Section titled “Property Value”A string containing the name without extension part of the file version.
Source
Section titled “Source”Gets the link to the source file.
public FileLink Source { get; }Property Value
Section titled “Property Value”A FileLink object representing the link to the source file.
Gets the type of file system link.
public virtual FileSystemLinkType Type { get; }Property Value
Section titled “Property Value”A FileSystemLinkType value defines whether the link is associated with file, directory or file version.
Methods
Section titled “Methods”Delete()
Section titled “Delete()”Deletes the file version.
public virtual void Delete()DeleteAsync()
Section titled “DeleteAsync()”Asynchronously deletes the file version.
public virtual Task DeleteAsync()Returns
Section titled “Returns”The task object representing the asynchronous operation.
DemandReadAccess()
Section titled “DemandReadAccess()”Demands a read access to the file version.
public virtual void DemandReadAccess()DemandWriteAccess()
Section titled “DemandWriteAccess()”Demands a write access to the file version.
public void DemandWriteAccess()Equals(object)
Section titled “Equals(object)”public virtual bool Equals(object obj)Parameters
Section titled “Parameters”objobject
Returns
Section titled “Returns”GetHashCode()
Section titled “GetHashCode()”public virtual int GetHashCode()Returns
Section titled “Returns”HasEqualContent(IFileResourceLink)
Section titled “HasEqualContent(IFileResourceLink)”Returns a value indicating whether the file version has equal content to other file/file version.
public virtual bool HasEqualContent(IFileResourceLink other)Parameters
Section titled “Parameters”otherIFileResourceLink
The link to the file/file version to compare.
Returns
Section titled “Returns”true if the file version has equal content to other file/file version; otherwise, false.
HasEqualContentAsync(IFileResourceLink)
Section titled “HasEqualContentAsync(IFileResourceLink)”Asynchronously returns a value indicating whether the file version has equal content to other file/file version.
public virtual Task<bool> HasEqualContentAsync(IFileResourceLink other)Parameters
Section titled “Parameters”otherIFileResourceLink
The link to the file/file version to compare.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains a true if the file version has equal content to other file/file version; otherwise, false.
LoadInfo()
Section titled “LoadInfo()”Loads information (like Exists, ModifyTime, etc.) about file/directory if its not loaded already.
public virtual void LoadInfo()LoadInfoAsync()
Section titled “LoadInfoAsync()”Loads information (like Exists, ModifyTime, etc.) about file/directory if its not loaded already.
public virtual Task LoadInfoAsync()Returns
Section titled “Returns”Read()
Section titled “Read()”Reads the file version.
public virtual Stream Read()Returns
Section titled “Returns”A read-only Stream on the specified file version.
ReadAsync()
Section titled “ReadAsync()”Asynchronously reads the file version.
public virtual Task<Stream> ReadAsync()Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains a read-only Stream on the specified file version.
RefreshInfo()
Section titled “RefreshInfo()”Refreshes information (like Exists, ModifyTime, etc.) about file/directory.
public virtual void RefreshInfo()RefreshInfoAsync()
Section titled “RefreshInfoAsync()”Refreshes information (like Exists, ModifyTime, etc.) about file/directory.
public virtual Task RefreshInfoAsync()Returns
Section titled “Returns”Restore()
Section titled “Restore()”Restores the file version.
public void Restore()RestoreAsync()
Section titled “RestoreAsync()”Asynchronously restores the file version.
public Task RestoreAsync()Returns
Section titled “Returns”The task object representing the asynchronous operation.
ToString()
Section titled “ToString()”public virtual string ToString()Returns
Section titled “Returns”operator ==(FileVersionLink, FileVersionLink)
Section titled “operator ==(FileVersionLink, FileVersionLink)”Determines whether the specified FileVersionLink instances are considered equal.
public static bool operator ==(FileVersionLink left, FileVersionLink right)Parameters
Section titled “Parameters”leftFileVersionLink
The first FileVersionLink object to compare.rightFileVersionLink
The second FileVersionLink object to compare.
Returns
Section titled “Returns”true if the FileVersionLink objects are considered equal; otherwise, false.
operator !=(FileVersionLink, FileVersionLink)
Section titled “operator !=(FileVersionLink, FileVersionLink)”Determines whether the specified FileVersionLink instances are considered different.
public static bool operator !=(FileVersionLink left, FileVersionLink right)Parameters
Section titled “Parameters”leftFileVersionLink
The first FileVersionLink object to compare.rightFileVersionLink
The second FileVersionLink object to compare.
Returns
Section titled “Returns”true if the FileVersionLink objects are considered different; otherwise, false.