Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Gauge<T>.Record Method

Definition

Namespace:
System.Diagnostics.Metrics
Assembly:
System.Diagnostics.DiagnosticSource.dll
Package:
System.Diagnostics.DiagnosticSource v11.0.0-preview.5.26302.115

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
Record(T)

Record the Gauge current value.

Record(T, KeyValuePair<String,Object>)

Record the Gauge current value.

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

Record the Gauge current value.

Record(T, TagList)

Record the Gauge current value.

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

Record the Gauge current value.

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

Record the Gauge current value.

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

Record the Gauge current value.

Record(T)

Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs

Record the Gauge current value.

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

Parameters

value
T

The Gauge current value.

Applies to

Record(T, KeyValuePair<String,Object>)

Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs

Record the Gauge current value.

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

Parameters

value
T

The Gauge current value.

tag
KeyValuePair<String,Object>

A key-value pair tag associated with the measurement.

Applies to

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

Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs

Record the Gauge current value.

public:
 void Record(T value, ... cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
public void Record(T value, params System.Collections.Generic.KeyValuePair<string,object>[] tags);
member this.Record : 'T * System.Collections.Generic.KeyValuePair<string, obj>[] -> unit
Public Sub Record (value As T, ParamArray tags As KeyValuePair(Of String, Object)())

Parameters

value
T

The Gauge current value.

tags
KeyValuePair<String,Object>[]

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

Applies to

Record(T, TagList)

Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs

Record the Gauge current value.

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

Parameters

value
T

The Gauge current value.

tagList
TagList

A TagList of tags associated with the measurement.

Applies to

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

Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs

Record the Gauge current value.

public:
 void Record(T value, ReadOnlySpan<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> tags);
public void Record(T value, scoped ReadOnlySpan<System.Collections.Generic.KeyValuePair<string,object?>> tags);
member this.Record : 'T * ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, obj>> -> unit
Public Sub Record (value As T, tags As ReadOnlySpan(Of KeyValuePair(Of String, Object)))

Parameters

value
T

The Gauge current value.

tags
ReadOnlySpan<KeyValuePair<String,Object>>

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

Applies to

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

Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs

Record the Gauge current value.

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

Parameters

value
T

The Gauge current value.

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

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

Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs
Source:
Gauge.cs

Record the Gauge current value.

public:
 void Record(T value, 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 Record(T value, System.Collections.Generic.KeyValuePair<string,object?> tag1, System.Collections.Generic.KeyValuePair<string,object?> tag2, System.Collections.Generic.KeyValuePair<string,object?> tag3);
member this.Record : 'T * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> -> unit
Public Sub Record (value As T, tag1 As KeyValuePair(Of String, Object), tag2 As KeyValuePair(Of String, Object), tag3 As KeyValuePair(Of String, Object))

Parameters

value
T

The Gauge current value.

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


Feedback

Was this page helpful?