Share via


PosCommon.UpdateStatistics Method (Statistic[])

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

Usage

'Usage
Dim statistics() As Statistic
Dim posCommon1 As PosCommon
posCommon1.UpdateStatistics(statistics)

Syntax

'Declaration
Overloads Public MustOverride Sub UpdateStatistics( _
    ByVal statistics() As Statistic _
)
public abstract void UpdateStatistics(
    Statistic[] statistics
);
public: abstract Void UpdateStatistics(
    array<Statistic^>^ statistics
);
public abstract void UpdateStatistics(
    Statistic[] statistics
);
public abstract function UpdateStatistics(
     statistics : Statistic[]
) : Void;

Parameters

  • statistics
    Contains an array of Statistic class instances (name-value pairs) that contain the names and values of the statistics to be updated.

Remarks

Updates a list of statistics with the corresponding specified values.

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

UpdateStatistics is always executed synchronously.

UpdateStatistics 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;

  • The statistics parameter is null; or

  • One or more of the specified statistics doesn’t exist.

Extended

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

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