Share via


PosCommon.ResetStatistic Method

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

Usage

'Usage
Dim statistic As String
Dim posCommon1 As PosCommon
posCommon1.ResetStatistic(statistic)

Syntax

'Declaration
Public MustOverride Sub ResetStatistic( _
    ByVal statistic As String _
)
public abstract void ResetStatistic(
    string statistic
);
public: abstract Void ResetStatistic(
    String^ statistic
);
public abstract void ResetStatistic(
    System.String statistic
);
public abstract function ResetStatistic(
     statistic : String
) : Void;

Parameters

  • statistic
    Specifies the statistic that is to be reset.

Remarks

The application calls ResetStatistic to reset the specified statistic to 0 (zero).

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

ResetStatistic is always executed synchronously.

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

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 doesn't exist; or

  • The specified statistic is not resettable.

Extended

ExtendedErrorStatistics. An error occurred while attempting 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.

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