共用方式為


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)

來源:
Measurement.cs
來源:
Measurement.cs
來源:
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>>)

來源:
Measurement.cs
來源:
Measurement.cs
來源:
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>[])

來源:
Measurement.cs
來源:
Measurement.cs
來源:
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>>)

來源:
Measurement.cs
來源:
Measurement.cs
來源:
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>>

與度量相關聯的標記清單。

適用於