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 IFileSystemAsyncDirectReadWriteOperationsMethods
Section titled “Methods”GetSupportedDirectAccess(FileLink)
Section titled “GetSupportedDirectAccess(FileLink)”Supported direct access kind. ReadWrite means that all 3 kinds are supported.
public virtual FileAccess GetSupportedDirectAccess(FileLink file)Parameters
Section titled “Parameters”fileFileLink
Returns
Section titled “Returns”OpenFileStreamAsync(FileLink, FileAccess, bool)
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)Parameters
Section titled “Parameters”fileFileLink
The handle for the file being written.accessFileAccess
Type of access to file.overwritebool
trueif the file can be overwritten; otherwise, if the file exists, an exception will be thrown.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains a file stream.