Click or drag to resize

ArchiveDataBlock Class

Represents a block of ArchiveDataPoints in an ArchiveFile.
Inheritance Hierarchy
SystemObject
  GSF.Historian.FilesArchiveDataBlock

Namespace: GSF.Historian.Files
Assembly: GSF.Historian (in GSF.Historian.dll) Version: 2.4.207-beta
Syntax
public class ArchiveDataBlock
View Source

The ArchiveDataBlock type exposes the following members.

Properties
 NameDescription
Public propertyCapacity Gets the maximum number of ArchiveDataPoints that can be stored in the ArchiveDataBlock.
Public propertyIndex Gets the 0-based index of the ArchiveDataBlock.
Public propertyIsActive Gets a boolean value that indicates whether the ArchiveDataBlock is being actively used.
Public propertyLocation Gets the start location (byte position) of the ArchiveDataBlock in the ArchiveFile.
Public propertySlotsAvailable Gets the number of ArchiveDataPoints that can to written to the ArchiveDataBlock.
Public propertySlotsUsed Gets the number of ArchiveDataPoints that have been written to the ArchiveDataBlock.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnDataReadException Raises the DataReadException event.
Protected methodOnDataWriteException Raises the DataWriteException event.
Public methodRead Reads existing ArchiveDataPoints from the ArchiveDataBlock.
Public methodReset Resets the ArchiveDataBlock by overwriting existing ArchiveDataPoints with empty ArchiveDataPoints.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWrite(IDataPoint, Boolean) Writes the dataPoint to the ArchiveDataBlock.
Public methodWrite(IDataPoint, Exception) Writes the dataPoint to the ArchiveDataBlock.
Top
Events
 NameDescription
Public eventDataReadException Occurs when an Exception is encountered while reading IDataPoint from the ArchiveDataBlock.
Public eventDataWriteException Occurs when an Exception is encountered while writing IDataPoint to the ArchiveDataBlock.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also