Skip to content
Auto
Products

IFileResourceLink

Namespace: TagBites.IO
Assembly: TagBites.IO.dll
Product: TagBites.IO v. 2.0.0

Provides a mechanism for linking to the file/file version.

public interface IFileResourceLink : TagBites.IO.IFileSystemLink

Gets the path to the content of the file/file version.

public virtual string ContentPath { get; }

string

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

Gets the extension part of the file/file version.

public virtual string Extension { get; }

string

A string containing the extension part of the file/file version.

Gets the hash value for the file/file version.

public virtual FileHash Hash { get; }

FileHash

A FileHash object representing hash value for the file/file version.

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

public virtual long Length { get; }

long

The size of the file/file version in bytes.

Gets the name without extension part of the file/file version.

public virtual string NameWithoutExtension { get; }

string

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

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

public virtual bool HasEqualContent(IFileResourceLink other)

bool

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

Asynchronously returns a value indicating whether the file/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/file version has equal content to other file/file version; otherwise, false.

Reads the file/file version.

public virtual Stream Read()

Stream

A read-only Stream on the specified file/file version.

Asynchronously reads the file/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/file version.