Share via


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

3/2/2014

Resets the specified statistic to 0 (zero).

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

Syntax

'Declaration
Public MustOverride Sub ResetStatistic ( _
    statistic As String _
)
public abstract void ResetStatistic (
    string statistic
)
public:
virtual void ResetStatistic (
    String^ statistic
) abstract
public abstract void ResetStatistic (
    String statistic
)
public abstract function ResetStatistic (
    statistic : String
)

Parameters

  • statistic
    Specifies the statistic that is to be reset.

Remarks

For ResetStatistic to be successful, both the CapStatisticsReporting and CapUpdateStatistics properties must be set to true.

ResetStatistic is always executed synchronously.

ResetStatistic may throw a PosControlException with the following values:

Value

Meaning

Illegal

One of the following conditions has occurred:

  • Either the CapStatisticsReporting or CapUpdateStatistics property is set to false;

  • The statistic parameter is null or does not exist; or

  • The specified statistic is not resettable.

Extended

ExtendedErrorStatistics. An error occurred while it tried to reset the specified statistic.

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
CapUpdateStatistics