Share via


DeviceStatistics.RetrieveStatistics Method (StatisticCategories)

Retrieves the statistics for the specified category.

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

Usage

'Usage
Dim statistics As StatisticCategories
Dim returnValue As String
Dim deviceStatistics1 As DeviceStatistics
returnValue = deviceStatistics1.RetrieveStatistics(statistics)

Syntax

'Declaration
Overloads Public Function RetrieveStatistics( _
    ByVal statistics As StatisticCategories _
) As String
public string RetrieveStatistics(
    StatisticCategories statistics
);
public: String^ RetrieveStatistics(
    StatisticCategories^ statistics
);
public System.String RetrieveStatistics(
    StatisticCategories statistics
);
public function RetrieveStatistics(
     statistics : StatisticCategories
) : String;

Parameters

  • statistics
    Contains the category of statistics the application wishes to retrieve. Possible values are defined by the StatisticsCategories enumeration.

Remarks

If the service object needs to maintain hardware-based statistics, provide that information to the application, and allow the application to retrieve 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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

DeviceStatistics Class
DeviceStatistics Members
Microsoft.PointOfService.BaseServiceObjects Namespace
RetrieveStatistics