FulcrumFS FulcrumFS
FulcrumFS FulcrumFS
DocFX + Singulink = ♥

Search Results for

    Method Open

    Open(FileAccessPattern)

    Opens an asynchronous read-only file stream using the recommended sharing options for repository files (Read | Delete).

    Declaration
    public FileStream Open(FileAccessPattern accessPattern)
    Parameters
    Type Name Description
    FileAccessPattern accessPattern

    How the caller is going to read the stream. The file is opened with SequentialScan for Sequential and RandomAccess for Random, which the operating system uses as caching and read-ahead hints. The stream supports reading and seeking either way.

    Returns
    Type Description
    FileStream

    A new FileStream opened for reading.

    Remarks

    This is the recommended way to read a repository file. The returned stream allows other readers to access the file concurrently and allows the repository to delete the file while it is still open.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    accessPattern is not a defined FileAccessPattern value.

    © Singulink. All rights reserved.