IFileResourceLink

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

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

public abstract interface IFileResourceLink : TagBites.IO.IFileSystemLink

Properties

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

public string ContentPath { get; }

Result Type: string

Gets the extension part of the file/file version. <returns>A string containing the the extension part of the file/file version.</returns>

public string Extension { get; }

Result Type: string

Gets the hash value for the file/file version. <returns>A TagBites.IO.FileHash object representing hash value for the file/file version.</returns>

public FileHash Hash { get; }

Result Type: FileHash

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

public long Length { get; }

Result Type: long

Gets the name without extension part of the file/file version. <returns>A string containing the name without extension part of the file/file version.</returns>

public string NameWithoutExtension { get; }

Result Type: string

Methods

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

public bool HasEqualContent(IFileResourceLink other)

Result Type: bool

Parameters

TypeName
IFileResourceLinkotherThe link to the file/file version to compare.

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

public Task<bool> HasEqualContentAsync(IFileResourceLink other)

Result Type: Task<bool>

Parameters

TypeName
IFileResourceLinkotherThe link to the file/file version to compare.

Reads the file/file version.

public Stream Read()

Result Type: Stream

Asynchronously reads the file/file version.

public Task<Stream> ReadAsync()

Result Type: Task<Stream>