Gauge<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
generic <typename T>
where T : value classpublic ref class Gauge sealed : System::Diagnostics::Metrics::Instrument<T>
public sealed class Gauge<T> : System.Diagnostics.Metrics.Instrument<T> where T : struct
type Gauge<'T (requires 'T : struct)> = class
inherit Instrument<'T (requires 'T : struct)>
Public NotInheritable Class Gauge(Of T)
Inherits Instrument(Of T)
Type Parameters
- T
- Inheritance
Properties
Advice | (Inherited from Instrument<T>) |
Description |
Gets the instrument description. (Inherited from Instrument) |
Enabled |
Gets a value that indicates if there are any listeners for this instrument. (Inherited from Instrument) |
IsObservable |
Gets a value that indicates whether the instrument is an observable instrument. (Inherited from Instrument) |
Meter |
Gets the Meter that created the instrument. (Inherited from Instrument) |
Name |
Gets the instrument name. (Inherited from Instrument) |
Tags |
Returns the tags associated with the instrument. (Inherited from Instrument) |
Unit |
Gets the instrument unit of measurements. (Inherited from Instrument) |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Publish() |
Activates the instrument to start recording measurements and to allow listeners to start listening to such measurements. (Inherited from Instrument) |
Record(T) | |
Record(T, KeyValuePair<String,Object>) | |
Record(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>) | |
Record(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>, KeyValuePair<String,Object>) | |
Record(T, KeyValuePair<String,Object>[]) | |
Record(T, ReadOnlySpan<KeyValuePair<String,Object>>) | |
Record(T, TagList) | |
RecordMeasurement(T) |
Records a measurement by notifying all MeterListener objects that are listening to this instrument. (Inherited from Instrument<T>) |
RecordMeasurement(T, KeyValuePair<String,Object>) |
Records a measurement by notifying all MeterListener objects that are listening to this instrument. (Inherited from Instrument<T>) |
RecordMeasurement(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>) |
Records a measurement by notifying all MeterListener objects that are listening to this instrument. (Inherited from Instrument<T>) |
RecordMeasurement(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>, KeyValuePair<String,Object>) |
Records a measurement by notifying all MeterListener objects that are listening to this instrument. (Inherited from Instrument<T>) |
RecordMeasurement(T, ReadOnlySpan<KeyValuePair<String,Object>>) |
Records a measurement by notifying all MeterListener objects that are listening to this instrument. (Inherited from Instrument<T>) |
RecordMeasurement(T, TagList) |
Records a measurement by notifying all MeterListener objects that are listening to this instrument. (Inherited from Instrument<T>) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Applies to
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про