Share via


PosCommon.ResetStatistics Method (String[])

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

Usage

'Usage
Dim statistics() As String
Dim posCommon1 As PosCommon
posCommon1.ResetStatistics(statistics)

Syntax

'Declaration
Overloads Public MustOverride Sub ResetStatistics( _
    ByVal statistics() As String _
)
public abstract void ResetStatistics(
    string[] statistics
);
public: abstract Void ResetStatistics(
    array<String^>^ statistics
);
public abstract void ResetStatistics(
    System.String[] statistics
);
public abstract function ResetStatistics(
     statistics : String[]
) : Void;

Parameters

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

Remarks

Resets the specified statistics to 0 (zero).

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

ResetStatistic is always executed synchronously.

ResetStatistics returns void if successful, and it can throw the following exceptions:

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 isn’t 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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace
CapStatisticsReporting
CapUpdateStatistics