Share via


DeviceStatistics.CreateStatistic Method

Definition

Overloads

CreateStatistic(String, Boolean)

Creates and stores a new statistic for a device, after verifying that the statistic doesn't already exist.

CreateStatistic(String, Boolean, String)

Creates and stores a new statistic for a device, after verifying that the statistic doesn't already exist.

CreateStatistic(String, Boolean)

Creates and stores a new statistic for a device, after verifying that the statistic doesn't already exist.

public void CreateStatistic (string statisticName, bool resettable);
member this.CreateStatistic : string * bool -> unit
Public Sub CreateStatistic (statisticName As String, resettable As Boolean)

Parameters

statisticName
String

The name of the statistic (or the constant that refers to the statistic) to be created.

resettable
Boolean

If set to true, the created statistic will be identified by POS for .NET as resettable to 0 (zero).

Applies to

CreateStatistic(String, Boolean, String)

Creates and stores a new statistic for a device, after verifying that the statistic doesn't already exist.

public void CreateStatistic (string statisticName, bool resettable, string unitOfMeasure);
member this.CreateStatistic : string * bool * string -> unit
Public Sub CreateStatistic (statisticName As String, resettable As Boolean, unitOfMeasure As String)

Parameters

statisticName
String

The name of the statistic (or the constant that refers to the statistic) to be created.

resettable
Boolean

If set to true, the created statistic will be identified by POS for .NET as resettable to 0 (zero).

unitOfMeasure
String

The unit of measure.

Applies to