Skip to content
Auto
Products

IFileSystemAsyncReadOperations

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

Provides the asynchronous read operations of a FileSystem.

public interface IFileSystemAsyncReadOperations : TagBites.IO.Operations.IFileSystemOperations

Returns information about a file/directory for the specified full name.

public virtual Task<IFileSystemStructureLinkInfo> GetLinkInfoAsync(string fullName)
  • fullName string
    The full path of the directory or file.

Task<IFileSystemStructureLinkInfo>

A Task of IFileSystemStructureLinkInfo representing information about a file/directory.

Section titled “GetLinksAsync(DirectoryLink, FileSystem.ListingOptions)”

Asynchronously retrieves a collection of strongly typed IFileSystemStructureLinkInfo objects representing the files and subdirectories that match the specified search criteria.

public virtual Task<IList<IFileSystemStructureLinkInfo>> GetLinksAsync(DirectoryLink directory, FileSystem.ListingOptions options)

Task<IList<IFileSystemStructureLinkInfo>>

The task object representing the asynchronous operation. The value of the parameter contains a collection of information about the files or directories.

Asynchronously reads an existing file to a stream.

public virtual Task ReadFileAsync(FileLink file, Stream stream)
  • file FileLink
    The link to the file to be opened for reading.
  • stream Stream
    Stream to copy file content into.

Task

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