HardTotals.FreeData Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Gets the number of bytes of unallocated data in the hard totals device.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property FreeData As Integer
public abstract int FreeData { get; }
public:
virtual property int FreeData {
    int get () abstract;
}
/** @property */
public abstract int get_FreeData ()
public abstract function get FreeData () : int

Remarks

FreeData is initialized when the device is enabled and is updated as files are created and deleted. If creating a file requires some overhead to support the file information, then FreeData is reduced by this overhead amount. This guarantees that a new file of size FreeData can be created.

Data writes within a transaction may temporarily reduce FreeData, because some hard totals space may have to be allocated to prepare for the transaction commit. Therefore, the application should maintain sufficient FreeData to perform its largest possible transactions.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

HardTotals Class
HardTotals Members
Microsoft.PointOfService Namespace
HardTotals.Create Method
HardTotals.Write Method