Share via


DeviceStatistics.IncrementStatistic Method

Definition

Overloads

IncrementStatistic(String)

Increments the specified statistic by 1.

IncrementStatistic(String, Int32)

Increments a statistic by the specified amount.

IncrementStatistic(String)

Increments the specified statistic by 1.

public void IncrementStatistic (string name);
member this.IncrementStatistic : string -> unit
Public Sub IncrementStatistic (name As String)

Parameters

name
String

Name of the statistic to be incremented. For UPOS-defined statistics, name should contain the POS for .NET predefined constant for the statistic.

Applies to

IncrementStatistic(String, Int32)

Increments a statistic by the specified amount.

public void IncrementStatistic (string name, int increment);
member this.IncrementStatistic : string * int -> unit
Public Sub IncrementStatistic (name As String, increment As Integer)

Parameters

name
String

Name of the statistic to be incremented. For UPOS-defined statistics, name should contain the POS for .NET predefined constant for the statistic.

increment
Int32

Amount by which to increment the statistic.

Applies to