IFileSystemDirectReadWriteOperations
Namespace: TagBites.IO.Operations
Assembly: TagBites.IO.dll
Product: TagBites.IO v. 2.0.0
Provides the direct read and write operations of a FileSystem.
public interface IFileSystemDirectReadWriteOperationsMethods
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”OpenFileStream(FileLink, FileAccess, bool)
Section titled “OpenFileStream(FileLink, FileAccess, bool)”Opens stream for the file in the specified handle.
public virtual Stream OpenFileStream(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”A stream to write content directly.