Gauge<T> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
計量器是一種用於在變動發生時記錄非加性值的儀器。 例如,當房間發生變化時,記錄房間背景噪音的值。
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)
類型參數
- T
- 繼承
備註
此類別僅支援以下一般參數類型:Byte、、、 SingleInt32Int64DoubleInt16Decimal
屬性
| 名稱 | Description |
|---|---|
| Advice |
與 InstrumentAdvice<T> 樂器相關。 (繼承來源 Instrument<T>) |
| Description |
拿到樂器描述。 (繼承來源 Instrument) |
| Enabled |
會有一個值,表示是否有聽眾聽這個樂器。 (繼承來源 Instrument) |
| IsObservable |
會得到一個值,表示該儀器是否為可觀測儀器。 (繼承來源 Instrument) |
| Meter |
取得製作該儀器的計量器。 (繼承來源 Instrument) |
| Name |
他會拿到樂器名稱。 (繼承來源 Instrument) |
| Tags |
回傳與該儀器相關的標籤。 (繼承來源 Instrument) |
| Unit |
取得儀器的計量單位。 (繼承來源 Instrument) |