Sdílet prostřednictvím


Instrument<T> Konstruktory

Definice

Přetížení

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

Vytvořte nástroj metrik pomocí měřiče vlastností, názvu, popisu a jednotky.

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

Inicializuje novou instanci Instrument<T> třídy se zadaným měřičem, názvem, popisem a jednotkou.

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

Zdroj:
Instrument.common.cs
Zdroj:
Instrument.common.cs
Zdroj:
Instrument.common.cs

Vytvořte nástroj metrik pomocí měřiče vlastností, názvu, popisu a jednotky.

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)

Parametry

meter
Meter

Měřič, který vytvořil nástroj.

name
String

Název nástroje. Nemůže být null.

unit
String

Volitelná přístrojová jednotka měření.

description
String

Volitelný popis nástroje.

Poznámky

Všechny třídy, které rozšiřují Instrument{T} musí volat tento konstruktor při vytváření objektů rozšířené třídy.

Platí pro

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

Zdroj:
Instrument.common.cs
Zdroj:
Instrument.common.cs

Inicializuje novou instanci Instrument<T> třídy se zadaným měřičem, názvem, popisem a jednotkou.

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

Parametry

meter
Meter

Měřič, který vytvořil nástroj.

name
String

Název nástroje. Nemůže být null.

unit
String

Volitelná přístrojová jednotka měření.

description
String

Volitelný popis nástroje.

tags
IEnumerable<KeyValuePair<String,Object>>

Volitelné značky instrumentů.

Poznámky

Všechny třídy, které se rozšiřují Instrument<T> , musí volat tento konstruktor při vytváření objektu rozšířené třídy.

Platí pro