Language

ICounterStore.Increment(IPipelineContext, String, Int32) Method

Definition

Increments the counter with the given prefix. If no such counter exists, a new one will be created with seed as the initial value.

public int Increment(Microsoft.TeamFoundation.DistributedTask.Pipelines.IPipelineContext context, string prefix, int seed);
abstract member Increment : Microsoft.TeamFoundation.DistributedTask.Pipelines.IPipelineContext * string * int -> int
Public Function Increment (context As IPipelineContext, prefix As String, seed As Integer) As Integer

Parameters

prefix
String

The counter prefix

seed
Int32

The initial value for the counter if the counter does not exist

Returns

The incremented value

Applies to