Share via


DeviceStatistics.UpdateStatistic Method (POS for .NET v1.12 SDK Documentation)

2/27/2008

Updates the value of the specified statistic.

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

Syntax

'Declaration
Public Sub UpdateStatistic ( _
    name As String, _
    value As Object _
)
public void UpdateStatistic (
    string name,
    Object value
)
public:
void UpdateStatistic (
    String^ name, 
    Object^ value
)
public void UpdateStatistic (
    String name, 
    Object value
)
public function UpdateStatistic (
    name : String, 
    value : Object
)

Parameters

  • name
    Name of the statistic to be updated.
  • value
    Value to which the statistic should be set.

Remarks

If the service object needs to maintain hardware-based statistics, provide that information to the application, and allow the application to update those statistics, it should use SetStatisticHandlers to specify handlers that can be used by POS for .NET for this purpose.

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

DeviceStatistics Class
DeviceStatistics Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PosCommon.UpdateStatistic Method
DeviceStatistics.SetStatisticHandlers Method