Skip to content
Auto
Products

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.IFileSystemLink

Inheritance: object → FileVersionLink

Gets a container to store user’s metadata.

public virtual FileSystemLinkBag Bag { get; }

FileSystemLinkBag

Gets a value indicating whether the file version can be read.

public virtual bool CanRead { get; }

bool

true if the file version can be read; otherwise, false.

Gets a value indicating whether the file version can be written.

public virtual bool CanWrite { get; }

bool

true if the file version can be written; otherwise, false.

Gets a string representing the path to the content of the file version.

public virtual string ContentPath { get; }

string

A string representing the path to the content of the file version.

Gets the creation time of the file version.

public DateTime CreationTime { get; }

DateTime

The creation time of the file version.

Gets a value indicating whether the file version exists.

public virtual bool Exists { get; }

bool

true if the file version exists; otherwise, false.

Gets the extension part of the file version.

public virtual string Extension { get; }

string

A string containing the extension part of the file version.

Gets a file system to which the file/directory/file version belongs.

public virtual FileSystem FileSystem { get; }

FileSystem

A FileSystem object representing file system to which the file/directory/file version belongs.

Gets the full path of the file version.

public virtual string FullName { get; }

string

A String containing the full path of the file version.

Gets the hash value for the file version.

public virtual FileHash Hash { get; }

FileHash

A FileHash object representing hash value for the file version.

Gets information about file version.

public IFileVersionLinkInfo Info { get; }

IFileVersionLinkInfo

A IFileVersionLinkInfo object representing information about a file version.

Gets a value indicating whether the file version is read only.

public virtual bool IsReadOnly { get; }

bool

true if the file version is read only; otherwise, false.

Gets the size, in bytes, of the file version.

public virtual long Length { get; }

long

The size of the file version in bytes.

Gets the time when the current file version was last modified.

public DateTime ModifyTime { get; }

DateTime

The time the current file version was last modified.

Gets the name of the file version.

public virtual string Name { get; }

string

A String that is the name of a file version, including the file version name extension.

Gets the name without extension part of the file version.

public virtual string NameWithoutExtension { get; }

string

A string containing the name without extension part of the file version.

Gets the link to the source file.

public FileLink Source { get; }

FileLink

A FileLink object representing the link to the source file.

Gets the type of file system link.

public virtual FileSystemLinkType Type { get; }

FileSystemLinkType

A FileSystemLinkType value defines whether the link is associated with file, directory or file version.

Deletes the file version.

public virtual void Delete()

Asynchronously deletes the file version.

public virtual Task DeleteAsync()

Task

The task object representing the asynchronous operation.

Demands a read access to the file version.

public virtual void DemandReadAccess()

Demands a write access to the file version.

public void DemandWriteAccess()
public virtual bool Equals(object obj)

bool

public virtual int GetHashCode()

int

Returns a value indicating whether the file version has equal content to other file/file version.

public virtual bool HasEqualContent(IFileResourceLink other)

bool

true if the file version has equal content to other file/file version; otherwise, false.

Asynchronously returns a value indicating whether the file version has equal content to other file/file version.

public virtual Task<bool> HasEqualContentAsync(IFileResourceLink other)

Task<bool>

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.

Loads information (like Exists, ModifyTime, etc.) about file/directory if its not loaded already.

public virtual void LoadInfo()

Loads information (like Exists, ModifyTime, etc.) about file/directory if its not loaded already.

public virtual Task LoadInfoAsync()

Task

Reads the file version.

public virtual Stream Read()

Stream

A read-only Stream on the specified file version.

Asynchronously reads the file version.

public virtual Task<Stream> ReadAsync()

Task<Stream>

The task object representing the asynchronous operation. The value of the parameter contains a read-only Stream on the specified file version.

Refreshes information (like Exists, ModifyTime, etc.) about file/directory.

public virtual void RefreshInfo()

Refreshes information (like Exists, ModifyTime, etc.) about file/directory.

public virtual Task RefreshInfoAsync()

Task

Restores the file version.

public void Restore()

Asynchronously restores the file version.

public Task RestoreAsync()

Task

The task object representing the asynchronous operation.

public virtual string ToString()

string

Section titled “operator ==(FileVersionLink, FileVersionLink)”

Determines whether the specified FileVersionLink instances are considered equal.

public static bool operator ==(FileVersionLink left, FileVersionLink right)

bool

true if the FileVersionLink objects are considered equal; otherwise, false.

Section titled “operator !=(FileVersionLink, FileVersionLink)”

Determines whether the specified FileVersionLink instances are considered different.

public static bool operator !=(FileVersionLink left, FileVersionLink right)

bool

true if the FileVersionLink objects are considered different; otherwise, false.