PosCommon.UpdateStatistics Method (Statistic[])
2/27/2008
Updates a list of statistics with the corresponding specified values.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub UpdateStatistics ( _
statistics As Statistic() _
)
public abstract void UpdateStatistics (
Statistic[] statistics
)
public:
virtual void UpdateStatistics (
array<Statistic^>^ statistics
) abstract
public abstract void UpdateStatistics (
Statistic[] statistics
)
public abstract function UpdateStatistics (
statistics : Statistic[]
)
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
For UpdateStatistics to be successful, both the CapStatisticsReporting and CapUpdateStatistics properties must be set to true.
UpdateStatistics is always executed synchronously.
UpdateStatistics may throw a PosControlException with the following values:
Value |
Meaning |
Illegal |
One of the following conditions has occurred:
|
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.
See Also
Reference
PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace
CapStatisticsReporting
CapUpdateStatistics