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
ContentPath
Gets the path to the content of the file/file version.
public string ContentPath { get; }
Result Type: string
Extension
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
Hash
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
Length
Gets the size, in bytes, of the file/file version.
public long Length { get; }
Result Type: long
NameWithoutExtension
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
HasEqualContent(IFileResourceLink)
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
Type | Name | |
---|---|---|
IFileResourceLink | other | The link to the file/file version to compare. |
HasEqualContentAsync(IFileResourceLink)
Asynchronously returns a value indicating whether the file/file version has equal content to other file/file version.
public Task<bool> HasEqualContentAsync(IFileResourceLink other)
Parameters
Type | Name | |
---|---|---|
IFileResourceLink | other | The link to the file/file version to compare. |
Read()
Reads the file/file version.
public Stream Read()
Result Type: Stream
ReadAsync()
Asynchronously reads the file/file version.
public Task<Stream> ReadAsync()