Share via


PosCommon.ResetStatistics Method (String[]) (POS for .NET v1.14 SDK Documentation)

3/2/2014

Resets the specified statistics to 0 (zero).

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

Syntax

'Declaration
Public MustOverride Sub ResetStatistics ( _
    statistics As String() _
)
public abstract void ResetStatistics (
    string[] statistics
)
public:
virtual void ResetStatistics (
    array<String^>^ statistics
) abstract
public abstract void ResetStatistics (
    String[] statistics
)
public abstract function ResetStatistics (
    statistics : String[]
)

Parameters

  • statistics
    Contains an array of statistic names to be reset.

Remarks

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

ResetStatistic is always executed synchronously.

ResetStatistics may throw a PosControlException with the following values:

Value

Meaning

Illegal

One of the following conditions has occurred:

  • The CapStatisticsReporting or CapUpdateStatistics property is set to false; or

  • One of the specified statistics is not defined.

Extended

ExtendedErrorStatistics. At least one of the specified statistics could not be reset.

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