Skip to content
Auto
Products

IFileSystemAsyncDirectReadWriteOperations

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

Provides the asynchronous direct read and write operations of a FileSystem.

public interface IFileSystemAsyncDirectReadWriteOperations

Supported direct access kind. ReadWrite means that all 3 kinds are supported.

public virtual FileAccess GetSupportedDirectAccess(FileLink file)

FileAccess

Section titled “OpenFileStreamAsync(FileLink, FileAccess, bool)”

Opens stream for the file in the specified handle.

public virtual Task<Stream> OpenFileStreamAsync(FileLink file, FileAccess access, bool overwrite)
  • file FileLink
    The handle for the file being written.
  • access FileAccess
    Type of access to file.
  • overwrite bool
    true if the file can be overwritten; otherwise, if the file exists, an exception will be thrown.

Task<Stream>

The task object representing the asynchronous operation. The value of the parameter contains a file stream.