Dela via


ICounter<T>.Add Method

Definition

Overloads

Add(T)

Records the increment value of the measurement.

Add(T, KeyValuePair<String,Object>)

Records the increment value of the measurement.

Add(T, KeyValuePair<String,Object>[])

Records the increment value of the measurement.

Add(T, ReadOnlySpan<KeyValuePair<String,Object>>)

Records the increment value of the measurement.

Add(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Records the increment value of the measurement.

Add(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Records the increment value of the measurement.

Add(T)

Records the increment value of the measurement.

public void Add (T delta);
abstract member Add : 'T -> unit
Public Sub Add (delta As T)

Parameters

delta
T

The value of the increment (may not be negative).

Applies to

Add(T, KeyValuePair<String,Object>)

Records the increment value of the measurement.

public void Add (T delta, System.Collections.Generic.KeyValuePair<string,object?> tag);
abstract member Add : 'T * System.Collections.Generic.KeyValuePair<string, obj> -> unit
Public Sub Add (delta As T, tag As KeyValuePair(Of String, Object))

Parameters

delta
T

The value of the increment (may not be negative).

tag
KeyValuePair<String,Object>

A key-value pair tag associated with the measurement.

Applies to

Add(T, KeyValuePair<String,Object>[])

Records the increment value of the measurement.

public void Add (T delta, params System.Collections.Generic.KeyValuePair<string,object>[] tags);
abstract member Add : 'T * System.Collections.Generic.KeyValuePair<string, obj>[] -> unit
Public Sub Add (delta As T, ParamArray tags As KeyValuePair(Of String, Object)())

Parameters

delta
T

The value of the increment (may not be negative).

tags
KeyValuePair<String,Object>[]

A list of key-value pair tags associated with the measurement.

Applies to

Add(T, ReadOnlySpan<KeyValuePair<String,Object>>)

Records the increment value of the measurement.

public void Add (T delta, ReadOnlySpan<System.Collections.Generic.KeyValuePair<string,object>> tags);
abstract member Add : 'T * ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, obj>> -> unit
Public Sub Add (delta As T, tags As ReadOnlySpan(Of KeyValuePair(Of String, Object)))

Parameters

delta
T

The value of the increment (may not be negative).

tags
ReadOnlySpan<KeyValuePair<String,Object>>

A span of key-value pair tags associated with the measurement.

Applies to

Add(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Records the increment value of the measurement.

public void Add (T delta, System.Collections.Generic.KeyValuePair<string,object?> tag1, System.Collections.Generic.KeyValuePair<string,object?> tag2);
abstract member Add : 'T * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> -> unit
Public Sub Add (delta As T, tag1 As KeyValuePair(Of String, Object), tag2 As KeyValuePair(Of String, Object))

Parameters

delta
T

The value of the increment (may not be negative).

tag1
KeyValuePair<String,Object>

A first key-value pair tag associated with the measurement.

tag2
KeyValuePair<String,Object>

A second key-value pair tag associated with the measurement.

Applies to

Add(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Records the increment value of the measurement.

public void Add (T delta, System.Collections.Generic.KeyValuePair<string,object?> tag1, System.Collections.Generic.KeyValuePair<string,object?> tag2, System.Collections.Generic.KeyValuePair<string,object?> tag3);
abstract member Add : 'T * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> -> unit
Public Sub Add (delta As T, tag1 As KeyValuePair(Of String, Object), tag2 As KeyValuePair(Of String, Object), tag3 As KeyValuePair(Of String, Object))

Parameters

delta
T

The value of the increment (may not be negative).

tag1
KeyValuePair<String,Object>

A first key-value pair tag associated with the measurement.

tag2
KeyValuePair<String,Object>

A second key-value pair tag associated with the measurement.

tag3
KeyValuePair<String,Object>

A third key-value pair tag associated with the measurement.

Applies to