Share via


HardTotals.Read Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Reads data from a totals file.

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

Syntax

'Declaration
Public MustOverride Function Read ( _
    handle As Integer, _
    offset As Integer, _
    count As Integer _
) As Byte()
public abstract byte[] Read (
    int handle,
    int offset,
    int count
)
public:
virtual array<unsigned char>^ Read (
    int handle, 
    int offset, 
    int count
) abstract
public abstract byte[] Read (
    int handle, 
    int offset, 
    int count
)
public abstract function Read (
    handle : int, 
    offset : int, 
    count : int
) : byte[]

Parameters

  • handle
    Totals file handle returned from a Create or Find method.
  • offset
    Starting offset for the data to be read.
  • count
    Number of bytes of data to read.

Remarks

Read returns file data if this is successful, and may cause a PosControlException to be thrown with one of the following ErrorCodes.

Value

Meaning

Claimed

Cannot read because either the totals file or the totals area is claimed by another application.

Illegal

The handle is invalid, or part of the data range is outside the bounds of the totals file.

Extended

ErrorCodeExtended = ExtendedErrorValidation:A validation error has occurred while it is reading data.

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
Write