PosCommon.UpdateStatistic Method (POS for .NET v1.14 SDK Documentation)
3/2/2014
Updates the value of a specified device statistic.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub UpdateStatistic ( _
name As String, _
value As Object _
)
public abstract void UpdateStatistic (
string name,
Object value
)
public:
virtual void UpdateStatistic (
String^ name,
Object^ value
) abstract
public abstract void UpdateStatistic (
String name,
Object value
)
public abstract function UpdateStatistic (
name : String,
value : Object
)
Parameters
- name
- value
Remarks
For UpdateStatistic to be successful, both the CapStatisticsReporting and CapUpdateStatistics properties must be set to true.
UpdateStatistic is always executed synchronously.
UpdateStatistic may throw a PosControlException with the following values:
Value |
Meaning |
Illegal |
One of the following conditions has occurred:
|
Extended |
ExtendedErrorStatistics. An error occurred while it tried to update 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.
See Also
Reference
PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace
CapStatisticsReporting
CapUpdateStatistics