UpDownCounter<T> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一種支援報告正負指標值的工具。 UpDownCounter 可用於報告活躍請求變動或佇列大小等情境。
generic <typename T>
where T : value classpublic ref class UpDownCounter sealed : System::Diagnostics::Metrics::Instrument<T>
public sealed class UpDownCounter<T> : System.Diagnostics.Metrics.Instrument<T> where T : struct
type UpDownCounter<'T (requires 'T : struct)> = class
inherit Instrument<'T (requires 'T : struct)>
Public NotInheritable Class UpDownCounter(Of T)
Inherits Instrument(Of T)
類型參數
- T
這正是UpDownCounter所代表的類型。
- 繼承
備註
此類別僅支援以下一般參數類型:Byte、、、 Int16Int32Int64SingleDoubleDecimal
屬性
| 名稱 | Description |
|---|---|
| Advice |
與 InstrumentAdvice<T> 樂器相關。 (繼承來源 Instrument<T>) |
| Description |
拿到樂器描述。 (繼承來源 Instrument) |
| Enabled |
會有一個值,表示是否有聽眾聽這個樂器。 (繼承來源 Instrument) |
| IsObservable |
會得到一個值,表示該儀器是否為可觀測儀器。 (繼承來源 Instrument) |
| Meter |
取得製作該儀器的計量器。 (繼承來源 Instrument) |
| Name |
他會拿到樂器名稱。 (繼承來源 Instrument) |
| Tags |
回傳與該儀器相關的標籤。 (繼承來源 Instrument) |
| Unit |
取得儀器的計量單位。 (繼承來源 Instrument) |