File System File System
File System File System
DocFX + Singulink = ♥

Search Results for

    Method OpenStream

    OpenStream(FileMode, FileAccess, FileShare, int, FileOptions)

    Opens a file stream to a new or existing file.

    Declaration
    FileStream OpenStream(FileMode mode = FileMode.Open, FileAccess access = FileAccess.ReadWrite, FileShare share = FileShare.None, int bufferSize = 4096, FileOptions options = FileOptions.None)
    Parameters
    Type Name Description
    FileMode mode

    A FileMode constant specifying the mode (for example, Open or Append) in which to open the file.

    FileAccess access

    A FileAccess constant specifying whether to open the file with Read, Write, or ReadWrite file access.

    FileShare share

    A FileShare constant specifying the type of access other FileStream objects have to this file.

    int bufferSize

    A positive value indicating the buffer size.

    FileOptions options

    Additional file options.

    Returns
    Type Description
    FileStream

    A new FileStream to the opened file.

    © Singulink. All rights reserved.