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.IFileSystemLinkProperties
Section titled “Properties”ContentPath
Section titled “ContentPath”Gets the path to the content of the file/file version.
public virtual string ContentPath { get; }Property Value
Section titled “Property Value”A string representing the path to the content of the file/file version.
Extension
Section titled “Extension”Gets the extension part of the file/file version.
public virtual string Extension { get; }Property Value
Section titled “Property Value”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; }Property Value
Section titled “Property Value”A FileHash object representing hash value for the file/file version.
Length
Section titled “Length”Gets the size, in bytes, of the file/file version.
public virtual long Length { get; }Property Value
Section titled “Property Value”The size of the file/file version in bytes.
NameWithoutExtension
Section titled “NameWithoutExtension”Gets the name without extension part of the file/file version.
public virtual string NameWithoutExtension { get; }Property Value
Section titled “Property Value”A string containing the name without extension part of the file/file version.
Methods
Section titled “Methods”HasEqualContent(IFileResourceLink)
Section titled “HasEqualContent(IFileResourceLink)”Returns a value indicating whether the file/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/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/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/file version has equal content to other file/file version; otherwise, false.
Read()
Section titled “Read()”Reads the file/file version.
public virtual Stream Read()Returns
Section titled “Returns”A read-only Stream on the specified file/file version.
ReadAsync()
Section titled “ReadAsync()”Asynchronously reads the file/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/file version.