Instrument<T> コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
Instrument<T>(Meter, String, String, String) |
プロパティの測定、名前、説明、および単位を使用してメトリック ストルメントを作成します。 |
Instrument<T>(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>) |
指定したメーター、名前、説明、およびユニットを使用して、 クラスの新しいインスタンス Instrument<T> を初期化します。 |
Instrument<T>(Meter, String, String, String)
プロパティの測定、名前、説明、および単位を使用してメトリック ストルメントを作成します。
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<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> クラスのオブジェクトを構築するときに、このコンストラクターを呼び出す必要があります。
適用対象
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示