Instrument<T> Classe

Definizione

Classe base per tutti gli strumenti non osservabili.

generic <typename T>
 where T : value classpublic ref class Instrument abstract : System::Diagnostics::Metrics::Instrument
public abstract class Instrument<T> : System.Diagnostics.Metrics.Instrument where T : struct
type Instrument<'T (requires 'T : struct)> = class
    inherit Instrument
Public MustInherit Class Instrument(Of T)
Inherits Instrument

Parametri di tipo

T

Tipo rappresentato dallo strumento.

Ereditarietà
Instrument<T>
Derivato

Commenti

Questa classe supporta solo i tipi di parametro generici seguenti: Byte, Int16Int32, Int64, Single, Double, e Decimal.

Costruttori

Nome Descrizione
Instrument<T>(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>, InstrumentAdvice<T>)

Costruisce una nuova istanza di Instrument<T>.

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

Inizializza una nuova istanza della Instrument<T> classe con il contatore, il nome, la descrizione e l'unità specificati.

Instrument<T>(Meter, String, String, String)

Creare lo strumento delle metriche usando il contatore delle proprietà, il nome, la descrizione e l'unità.

Instrument<T>(Meter, String)

Costruisce una nuova istanza di Instrument<T>.

Proprietà

Nome Descrizione
Advice

Ottiene l'oggetto InstrumentAdvice<T> associato allo strumento.

Description

Ottiene la descrizione dello strumento.

(Ereditato da Instrument)
Enabled

Ottiene un valore che indica se sono presenti listener per questo strumento.

(Ereditato da Instrument)
IsObservable

Ottiene un valore che indica se lo strumento è uno strumento osservabile.

(Ereditato da Instrument)
Meter

Ottiene il contatore che ha creato lo strumento.

(Ereditato da Instrument)
Name

Ottiene il nome dello strumento.

(Ereditato da Instrument)
Tags

Restituisce i tag associati allo strumento.

(Ereditato da Instrument)
Unit

Ottiene l'unità di misura dello strumento.

(Ereditato da Instrument)

Metodi

Nome Descrizione
Equals(Object)

Determina se l'oggetto specificato è uguale all'oggetto corrente.

(Ereditato da Object)
GetHashCode()

Funge da funzione hash predefinita.

(Ereditato da Object)
GetType()

Ottiene il Type dell'istanza corrente.

(Ereditato da Object)
MemberwiseClone()

Crea una copia superficiale del Objectcorrente.

(Ereditato da Object)
Publish()

Attiva lo strumento per avviare la registrazione delle misurazioni e consentire ai listener di iniziare ad ascoltare tali misurazioni.

(Ereditato da Instrument)
RecordMeasurement(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Registra una misura notificando a tutti gli MeterListener oggetti che sono in ascolto di questo strumento.

RecordMeasurement(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>)

Registra una misura notificando a tutti gli MeterListener oggetti che sono in ascolto di questo strumento.

RecordMeasurement(T, KeyValuePair<String,Object>)

Registra una misura notificando a tutti gli MeterListener oggetti che sono in ascolto di questo strumento.

RecordMeasurement(T, ReadOnlySpan<KeyValuePair<String,Object>>)

Registra una misura notificando a tutti gli MeterListener oggetti che sono in ascolto di questo strumento.

RecordMeasurement(T, TagList)

Registra una misura notificando a tutti gli MeterListener oggetti che sono in ascolto di questo strumento.

RecordMeasurement(T)

Registra una misura notificando a tutti gli MeterListener oggetti che sono in ascolto di questo strumento.

ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Si applica a