Sdílet prostřednictvím


Instrument<T> Konstruktory

Definice

Přetížení

Instrument<T>(Meter, String)

Vytvoří novou instanci Instrument<T>.

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 třídy Instrument<T> se zadaným měřičem, názvem, popisem a jednotkou.

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

Vytvoří novou instanci Instrument<T>.

Instrument<T>(Meter, String)

Vytvoří novou instanci Instrument<T>.

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

Parametry

meter
Meter

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

name
String

Název nástroje. Nelze null.

Platí pro

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ý nástroj vytvořil.

name
String

Název nástroje. Nelze null.

unit
String

Volitelná jednotka měření.

description
String

Volitelný popis nástroje.

Poznámky

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

Platí pro

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

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

Inicializuje novou instanci třídy Instrument<T> 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ý nástroj vytvořil.

name
String

Název nástroje. Nelze 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é rozšiřují Instrument<T> musí volat tento konstruktor při vytváření objektu rozšířené třídy.

Platí pro

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

Vytvoří novou instanci Instrument<T>.

protected Instrument (System.Diagnostics.Metrics.Meter meter, string name, string? unit = default, string? description = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags = default, System.Diagnostics.Metrics.InstrumentAdvice<T>? advice = default);
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.InstrumentAdvice<'T (requires 'T : struct)> -> System.Diagnostics.Metrics.Instrument<'T (requires 'T : struct)>
Protected Sub New (meter As Meter, name As String, Optional unit As String = Nothing, Optional description As String = Nothing, Optional tags As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing, Optional advice As InstrumentAdvice(Of T) = Nothing)

Parametry

meter
Meter

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

name
String

Název nástroje. Nelze null.

unit
String

Volitelná jednotka měření.

description
String

Volitelný popis nástroje.

tags
IEnumerable<KeyValuePair<String,Object>>

Volitelné značky instrumentů.

Platí pro