FileStreamBuf(String, Boolean, FileShareMode, FileCreationDisposition) Constructor

Creates a file stream buffer.

Namespace: Teigha.Runtime
Assembly: TD_Mgd (in TD_Mgd.dll) Version: 27.3.0.0
Syntax
public FileStreamBuf(
        string pcFilename,
        bool openForRead,
        FileShareMode nShareMode,
        FileCreationDisposition nCreationDisposition
)

Parameters

pcFilename  String
[in] File name.
openForRead  Boolean
[in] Flag that indicates whether to create buffer for read operations. If false, buffer is created for write operations.
nShareMode  FileShareMode
[in] File share mode.
nCreationDisposition  FileCreationDisposition
[in] File creation disposition.
Remarks
nShareMode parameter can be one of the following: ValueDescription0x10 deny read/write mode 0x20 deny write mode 0x30 deny read mode 0x40 deny none mode nCreationDisposition parameter can be one of the following: ValueDescription1 Creates a new file; fails if the specified file already exists. 2 Creates a new file; overwrites any existing file. 3 Opens the file; fails if the file does not exist. 4 Opens the file; creates the file if it does not exist. 5 Truncates the file; fails if the file does not exist. The file must be open at least write operations.
See Also