Measurement<T> 构造函数

定义

重载

Measurement<T>(T)

使用指定的值初始化 的新实例 Measurement<T>

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

使用指定的值和标记列表初始化 的新实例 Measurement<T>

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

使用指定的值和标记列表初始化 的新实例 Measurement<T>

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

使用指定的值和标记列表初始化 的新实例 Measurement<T>

Measurement<T>(T)

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

使用指定的值初始化 的新实例 Measurement<T>

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)

参数

value
T

度量值。

适用于

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

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

使用指定的值和标记列表初始化 的新实例 Measurement<T>

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

参数

value
T

度量值。

tags
IEnumerable<KeyValuePair<String,Object>>

与度量关联的标记列表。

适用于

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

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

使用指定的值和标记列表初始化 的新实例 Measurement<T>

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

参数

value
T

度量值。

tags
KeyValuePair<String,Object>[]

与度量关联的标记列表。

适用于

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)

参数

value
T
tags
TagList

适用于

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

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

使用指定的值和标记列表初始化 的新实例 Measurement<T>

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

参数

value
T

度量值。

tags
ReadOnlySpan<KeyValuePair<String,Object>>

与度量关联的标记列表。

适用于