C# Class GSF.IO.FileStructure.ReadSnapshot

Aquires a snapshot of the file system to browse in an isolated mannor. This is read only and will also block the main file from being deleted. Therefore it is important to release this lock so the file can be deleted after a rollover.
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Méthode Description
OpenFile ( SubFileName fileName ) : SubFileStream

Opens a ArchiveFileStream that can be used to read/write to the file passed to this function.

OpenFile ( int fileIndex ) : SubFileStream

Opens a ArchiveFileStream that can be used to read the file passed to this function.

Private Methods

Méthode Description
ReadSnapshot ( DiskIo dataReader ) : System

Creates a readonly copy of a transaction.

Method Details

OpenFile() public méthode

Opens a ArchiveFileStream that can be used to read/write to the file passed to this function.
public OpenFile ( SubFileName fileName ) : SubFileStream
fileName SubFileName
Résultat SubFileStream

OpenFile() public méthode

Opens a ArchiveFileStream that can be used to read the file passed to this function.
public OpenFile ( int fileIndex ) : SubFileStream
fileIndex int The index of the file to open.
Résultat SubFileStream