Redigera

Dela via


UpDownCounter<T>.Add Method

Definition

Overloads

Add(T)

Records the delta value of the measurement. The delta can be positive, negative, or zero.

Add(T, KeyValuePair<String,Object>)

Records the delta value of the measurement. The delta can be positive, negative, or zero.

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

Records the delta value of the measurement. The delta can be positive, negative, or zero.

Add(T, TagList)

Records the delta value of the measurement. The delta can be positive, negative, or zero.

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

Records the delta value of the measurement. The delta can be positive, negative, or zero.

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

Records the delta value of the measurement. The delta can be positive, negative, or zero.

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

Records the delta value of the measurement. The delta can be positive, negative, or zero.

Add(T)

Source:
UpDownCounter.cs
Source:
UpDownCounter.cs
Source:
UpDownCounter.cs

Records the delta value of the measurement. The delta can be positive, negative, or zero.

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

Parameters

delta
T

The amount to be added, which can be positive, negative, or zero.

Applies to

Add(T, KeyValuePair<String,Object>)

Source:
UpDownCounter.cs
Source:
UpDownCounter.cs
Source:
UpDownCounter.cs

Records the delta value of the measurement. The delta can be positive, negative, or zero.

public:
 void Add(T delta, System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> tag);
public void Add (T delta, System.Collections.Generic.KeyValuePair<string,object?> tag);
member this.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 amount to be added, which can be positive, negative, or zero.

tag
KeyValuePair<String,Object>

A key-value pair tag associated with the measurement.

Applies to

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

Source:
UpDownCounter.cs
Source:
UpDownCounter.cs
Source:
UpDownCounter.cs

Records the delta value of the measurement. The delta can be positive, negative, or zero.

public:
 void Add(T delta, ... cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
public void Add (T delta, params System.Collections.Generic.KeyValuePair<string,object>[] tags);
member this.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 amount to be added, which can be positive, negative, or zero.

tags
KeyValuePair<String,Object>[]

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

Applies to

Add(T, TagList)

Source:
UpDownCounter.cs
Source:
UpDownCounter.cs
Source:
UpDownCounter.cs

Records the delta value of the measurement. The delta can be positive, negative, or zero.

public:
 void Add(T delta, System::Diagnostics::TagList % tagList);
public void Add (T delta, in System.Diagnostics.TagList tagList);
member this.Add : 'T * TagList -> unit
Public Sub Add (delta As T, ByRef tagList As TagList)

Parameters

delta
T

The amount to be added, which can be positive, negative, or zero.

tagList
TagList

A TagList of tags associated with the measurement.

Applies to

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

Source:
UpDownCounter.cs
Source:
UpDownCounter.cs
Source:
UpDownCounter.cs

Records the delta value of the measurement. The delta can be positive, negative, or zero.

public:
 void Add(T delta, ReadOnlySpan<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> tags);
public void Add (T delta, ReadOnlySpan<System.Collections.Generic.KeyValuePair<string,object?>> tags);
public void Add (T delta, scoped ReadOnlySpan<System.Collections.Generic.KeyValuePair<string,object?>> tags);
member this.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 amount to be added, which can be positive, negative, or zero.

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>)

Source:
UpDownCounter.cs
Source:
UpDownCounter.cs
Source:
UpDownCounter.cs

Records the delta value of the measurement. The delta can be positive, negative, or zero.

public:
 void Add(T delta, System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> tag1, System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> tag2);
public void Add (T delta, System.Collections.Generic.KeyValuePair<string,object?> tag1, System.Collections.Generic.KeyValuePair<string,object?> tag2);
member this.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 amount to be added, which can be positive, negative, or zero.

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>)

Source:
UpDownCounter.cs
Source:
UpDownCounter.cs
Source:
UpDownCounter.cs

Records the delta value of the measurement. The delta can be positive, negative, or zero.

public:
 void Add(T delta, System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> tag1, System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> tag2, System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> tag3);
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);
member this.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 amount to be added, which can be positive, negative, or zero.

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