Sdílet prostřednictvím


Instrument Konstruktory

Definice

Přetížení

Instrument(Meter, String, String, String)

Chráněný konstruktor pro inicializaci společných vlastností nástroje, jako je měřič, název, popis a jednotka.

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

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

Instrument(Meter, String, String, String)

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

Chráněný konstruktor pro inicializaci společných vlastností nástroje, jako je měřič, název, popis a jednotka.

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 : System.Diagnostics.Metrics.Meter * string * string * string -> System.Diagnostics.Metrics.Instrument
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é Instrument musí volat tento konstruktor při vytváření objektů rozšířené třídy.

Platí pro

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

Zdroj:
Instrument.cs
Zdroj:
Instrument.cs

Inicializuje novou instanci Instrument 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 : System.Diagnostics.Metrics.Meter * string * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.Instrument
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 rozšiřující Instrument třídy musí volat tento konstruktor při vytváření objektu rozšířené třídy.

Platí pro