Instrument Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla