TransactionalFileStructureOpenFile Method

Opens an existing file.

Definition

Namespace: SnapDB.IO.FileStructure
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public static TransactionalFileStructure OpenFile(
	string fileName,
	bool isReadOnly
)

Parameters

fileName  String
The name of the existing file to open.
isReadOnly  Boolean
A boolean that tells us whether or not the file is read-only.

Return Value

TransactionalFileStructure
true if the file is read-only; otherwise, false if not.

Exceptions

ArgumentNullExceptionThrown if the file name is null.
ExceptionThrown if the file name does not exist.

See Also