ObservableInstrument<T> 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í
ObservableInstrument<T>(Meter, String, String, String) |
Inicializuje novou instanci ObservableInstrument<T> třídy pomocí zadaného měřiče, názvu, popisu a jednotky. Všechny třídy, které rozšiřují ObservableInstrument{T}, musí při vytváření objektů rozšířené třídy volat tento konstruktor. |
ObservableInstrument<T>(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>) |
Inicializuje novou instanci ObservableInstrument<T> třídy se zadaným měřičem, názvem, popisem a jednotkou. |
ObservableInstrument<T>(Meter, String, String, String)
- Zdroj:
- ObservableInstrument.cs
- Zdroj:
- ObservableInstrument.cs
- Zdroj:
- ObservableInstrument.cs
Inicializuje novou instanci ObservableInstrument<T> třídy pomocí zadaného měřiče, názvu, popisu a jednotky. Všechny třídy, které rozšiřují ObservableInstrument{T}, musí při vytváření objektů rozšířené třídy volat tento konstruktor.
protected:
ObservableInstrument(System::Diagnostics::Metrics::Meter ^ meter, System::String ^ name, System::String ^ unit, System::String ^ description);
protected ObservableInstrument (System.Diagnostics.Metrics.Meter meter, string name, string? unit, string? description);
new System.Diagnostics.Metrics.ObservableInstrument<'T (requires 'T : struct)> : System.Diagnostics.Metrics.Meter * string * string * string -> System.Diagnostics.Metrics.ObservableInstrument<'T (requires 'T : struct)>
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.
Platí pro
ObservableInstrument<T>(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>)
- Zdroj:
- ObservableInstrument.cs
- Zdroj:
- ObservableInstrument.cs
Inicializuje novou instanci ObservableInstrument<T> třídy se zadaným měřičem, názvem, popisem a jednotkou.
protected:
ObservableInstrument(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 ObservableInstrument (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.ObservableInstrument<'T (requires 'T : struct)> : System.Diagnostics.Metrics.Meter * string * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.ObservableInstrument<'T (requires 'T : struct)>
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>>
Značky, které se mají připojit k čítači.
Poznámky
Všechny rozšiřující ObservableInstrument<T> třídy musí při vytváření objektu rozšířené třídy volat tento konstruktor.