Measurement<T> Constructors

Definition

Overloads

Measurement<T>(T)

Initializes a new instance of Measurement<T> using the specified value.

Measurement<T>(T, IEnumerable<KeyValuePair<String,Object>>)

Initializes a new instance of Measurement<T> using the specified value and list of tags.

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

Initializes a new instance of Measurement<T> using the specified value and list of tags.

Measurement<T>(T, TagList)
Measurement<T>(T, ReadOnlySpan<KeyValuePair<String,Object>>)

Initializes a new instance of Measurement<T> using the specified value and list of tags.

Measurement<T>(T)

Source:
Measurement.cs
Source:
Measurement.cs
Source:
Measurement.cs

Initializes a new instance of Measurement<T> using the specified value.

public:
 Measurement(T value);
public Measurement (T value);
new System.Diagnostics.Metrics.Measurement<'T (requires 'T : struct)> : 'T -> System.Diagnostics.Metrics.Measurement<'T (requires 'T : struct)>
Public Sub New (value As T)

Parameters

value
T

The measurement value.

Applies to

Measurement<T>(T, IEnumerable<KeyValuePair<String,Object>>)

Source:
Measurement.cs
Source:
Measurement.cs
Source:
Measurement.cs

Initializes a new instance of Measurement<T> using the specified value and list of tags.

public:
 Measurement(T value, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
public Measurement (T value, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags);
new System.Diagnostics.Metrics.Measurement<'T (requires 'T : struct)> : 'T * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.Measurement<'T (requires 'T : struct)>
Public Sub New (value As T, tags As IEnumerable(Of KeyValuePair(Of String, Object)))

Parameters

value
T

The measurement value.

tags
IEnumerable<KeyValuePair<String,Object>>

The list of tags associated with the measurement.

Applies to

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

Source:
Measurement.cs
Source:
Measurement.cs
Source:
Measurement.cs

Initializes a new instance of Measurement<T> using the specified value and list of tags.

public:
 Measurement(T value, ... cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
public Measurement (T value, params System.Collections.Generic.KeyValuePair<string,object>[]? tags);
new System.Diagnostics.Metrics.Measurement<'T (requires 'T : struct)> : 'T * System.Collections.Generic.KeyValuePair<string, obj>[] -> System.Diagnostics.Metrics.Measurement<'T (requires 'T : struct)>
Public Sub New (value As T, ParamArray tags As KeyValuePair(Of String, Object)())

Parameters

value
T

The measurement value.

tags
KeyValuePair<String,Object>[]

The list of tags associated with the measurement.

Applies to

Measurement<T>(T, TagList)

public:
 Measurement(T value, System::Diagnostics::TagList % tags);
public Measurement (T value, in System.Diagnostics.TagList tags);
new System.Diagnostics.Metrics.Measurement<'T (requires 'T : struct)> : 'T * TagList -> System.Diagnostics.Metrics.Measurement<'T (requires 'T : struct)>
Public Sub New (value As T, ByRef tags As TagList)

Parameters

value
T
tags
TagList

Applies to

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

Source:
Measurement.cs
Source:
Measurement.cs
Source:
Measurement.cs

Initializes a new instance of Measurement<T> using the specified value and list of tags.

public:
 Measurement(T value, ReadOnlySpan<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> tags);
public Measurement (T value, ReadOnlySpan<System.Collections.Generic.KeyValuePair<string,object?>> tags);
public Measurement (T value, scoped ReadOnlySpan<System.Collections.Generic.KeyValuePair<string,object?>> tags);
new System.Diagnostics.Metrics.Measurement<'T (requires 'T : struct)> : 'T * ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.Measurement<'T (requires 'T : struct)>
Public Sub New (value As T, tags As ReadOnlySpan(Of KeyValuePair(Of String, Object)))

Parameters

value
T

The measurement value.

tags
ReadOnlySpan<KeyValuePair<String,Object>>

The list of tags associated with the measurement.

Applies to