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
| Nazwisko | Opis |
|---|---|
| Instrument(Meter, String) |
Tworzy nowe wystąpienie klasy Instrument. |
| 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 przy użyciu określonego miernika, nazwy, opisu i jednostki. |
Instrument(Meter, String)
- Źródło:
- Instrument.cs
- Źródło:
- Instrument.cs
- Źródło:
- Instrument.cs
- Źródło:
- Instrument.cs
Tworzy nowe wystąpienie klasy Instrument.
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
Miernik, który utworzył instrument. Nie można mieć .null
- name
- String
Nazwa instrumentu. Nie można mieć .null
Dotyczy
Instrument(Meter, String, String, String)
- Źródło:
- Instrument.cs
- Źródło:
- Instrument.cs
- Źródło:
- Instrument.cs
- Źródło:
- Instrument.cs
- Ź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 musi wywołać ten konstruktor podczas konstruowania obiektów klasy rozszerzonej.
Dotyczy
Instrument(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>)
- Źródło:
- Instrument.cs
- Źródło:
- Instrument.cs
- Źródło:
- Instrument.cs
- Źródło:
- Instrument.cs
- Źródło:
- Instrument.cs
- Źródło:
- Instrument.cs
Inicjuje Instrument nowe wystąpienie klasy przy użyciu określonego miernika, nazwy, opisu i jednostki.
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 = default, string? description = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags = default);
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, Optional unit As String = Nothing, Optional description As String = Nothing, Optional tags As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing)
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
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.