次の方法で共有


Instrument<T> コンストラクター

定義

オーバーロード

Instrument<T>(Meter, String, String, String)

プロパティの測定、名前、説明、および単位を使用してメトリック ストルメントを作成します。

Instrument<T>(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>)

指定したメーター、名前、説明、およびユニットを使用して、 クラスの新しいインスタンス Instrument<T> を初期化します。

Instrument<T>(Meter, String, String, String)

ソース:
Instrument.common.cs
ソース:
Instrument.common.cs
ソース:
Instrument.common.cs

プロパティの測定、名前、説明、および単位を使用してメトリック ストルメントを作成します。

protected:
 Instrument(System::Diagnostics::Metrics::Meter ^ meter, System::String ^ name, System::String ^ unit, System::String ^ description);
protected Instrument (System.Diagnostics.Metrics.Meter meter, string name, string? unit, string? description);
new System.Diagnostics.Metrics.Instrument<'T (requires 'T : struct)> : System.Diagnostics.Metrics.Meter * string * string * string -> System.Diagnostics.Metrics.Instrument<'T (requires 'T : struct)>
Protected Sub New (meter As Meter, name As String, unit As String, description As String)

パラメーター

meter
Meter

計測器を作成したメーター。

name
String

インストルメント名。 null にすることはできません。

unit
String

測定の任意器械の単位。

description
String

オプションのインストルメントの説明。

注釈

Instrument{T} を拡張するすべてのクラスは、拡張クラスのオブジェクトを構築するときにこのコンストラクターを呼び出す必要があります。

適用対象

Instrument<T>(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>)

ソース:
Instrument.common.cs
ソース:
Instrument.common.cs

指定したメーター、名前、説明、およびユニットを使用して、 クラスの新しいインスタンス Instrument<T> を初期化します。

protected:
 Instrument(System::Diagnostics::Metrics::Meter ^ meter, System::String ^ name, System::String ^ unit, System::String ^ description, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
protected Instrument (System.Diagnostics.Metrics.Meter meter, string name, string? unit, string? description, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags);
new System.Diagnostics.Metrics.Instrument<'T (requires 'T : struct)> : System.Diagnostics.Metrics.Meter * string * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.Instrument<'T (requires 'T : struct)>
Protected Sub New (meter As Meter, name As String, unit As String, description As String, tags As IEnumerable(Of KeyValuePair(Of String, Object)))

パラメーター

meter
Meter

計測器を作成したメーター。

name
String

インストルメント名。 null にすることはできません。

unit
String

測定の任意器械の単位。

description
String

オプションのインストルメントの説明。

tags
IEnumerable<KeyValuePair<String,Object>>

オプションのインストルメント タグ。

注釈

拡張するすべてのクラスは、拡張 Instrument<T> クラスのオブジェクトを構築するときに、このコンストラクターを呼び出す必要があります。

適用対象