Udostępnij za pośrednictwem


Instrument Konstruktory

Definicja

Przeciążenia

Instrument(Meter, String)
Instrument(Meter, String, String, String)

Chroniony konstruktor do inicjowania typowych właściwości instrumentu, takich jak miernik, nazwa, opis i jednostka.

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

Inicjuje Instrument nowe wystąpienie klasy z określonym miernikiem, nazwą, opisem i jednostką.

Instrument(Meter, String)

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

Parametry

meter
Meter
name
String

Dotyczy

Instrument(Meter, String, String, String)

Źródło:
Instrument.cs
Źródło:
Instrument.cs
Źródło:
Instrument.cs

Chroniony konstruktor do inicjowania typowych właściwości instrumentu, takich jak miernik, nazwa, opis i jednostka.

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

Miernik, który utworzył instrument.

name
String

Nazwa instrumentu. Nie można mieć .null

unit
String

Opcjonalna jednostka instrumentacja pomiarów.

description
String

Opcjonalny opis instrumentu.

Uwagi

Wszystkie klasy, które Instrument muszą wywoływać ten konstruktor podczas konstruowania obiektów rozszerzonej klasy.

Dotyczy

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

Źródło:
Instrument.cs
Źródło:
Instrument.cs

Inicjuje Instrument nowe wystąpienie klasy z określonym miernikiem, nazwą, opisem i jednostką.

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

Parametry

meter
Meter

Miernik, który utworzył instrument.

name
String

Nazwa instrumentu. Nie można mieć .null

unit
String

Opcjonalna jednostka instrumentacja pomiarów.

description
String

Opcjonalny opis instrumentu.

tags
IEnumerable<KeyValuePair<String,Object>>

Opcjonalne tagi instrumentów.

Uwagi

Wszystkie klasy rozszerzające Instrument muszą wywołać ten konstruktor podczas konstruowania obiektu klasy rozszerzonej.

Dotyczy