Share via


PosCommon.RetrieveStatistic Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Retrieves the specified device statistic.

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

Syntax

'Declaration
Public MustOverride Function RetrieveStatistic ( _
    statistic As String _
) As String
public abstract string RetrieveStatistic (
    string statistic
)
public:
virtual String^ RetrieveStatistic (
    String^ statistic
) abstract
public abstract String RetrieveStatistic (
    String statistic
)
public abstract function RetrieveStatistic (
    statistic : String
) : String

Parameters

  • statistic

Remarks

RetrieveStatistic is always executed synchronously.

RetrieveStatistic returns the requested statistic if it is successful. It may throw a PosControlException with the following values:

Value

Meaning

Illegal

One of the following conditions has occurred:

  • The CapStatisticsReporting property is set to false. This indicates that the device does not support statistics reporting;

  • The statistic parameter is null or has a length of 0 (zero); or

  • The specified statistic does not exist.

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

PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace
CapStatisticsReporting