Instrument Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
Instrument(Meter, String) |
Vytvoří novou instanci Instrument. |
Instrument(Meter, String, String, String) |
Chráněný konstruktor pro inicializaci běž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 třídy Instrument se zadaným měřičem, názvem, popisem a jednotkou. |
Instrument(Meter, String)
Vytvoří novou instanci 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
Měřič, který nástroj vytvořil. Nelze null
.
- name
- String
Název nástroje. Nelze null
.
Platí pro
Instrument(Meter, String, String, String)
- Zdroj:
- Instrument.cs
- Zdroj:
- Instrument.cs
- Zdroj:
- Instrument.cs
Chráněný konstruktor pro inicializaci běž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ý 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é 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 třídy Instrument 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);
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
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 rozšiřující Instrument musí volat tento konstruktor při vytváření objektu rozšířené třídy.