Meter.CreateGauge 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| CreateGauge<T>(String) |
建立一個計量器,可用來記錄非加法值。 |
| CreateGauge<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>) |
建立一個指標指標物件。 |
CreateGauge<T>(String)
- 來源:
- Meter.cs
- 來源:
- Meter.cs
- 來源:
- Meter.cs
- 來源:
- Meter.cs
建立一個計量器,可用來記錄非加法值。
public:
generic <typename T>
where T : value class System::Diagnostics::Metrics::Gauge<T> ^ CreateGauge(System::String ^ name);
public System.Diagnostics.Metrics.Gauge<T> CreateGauge<T>(string name) where T : struct;
member this.CreateGauge : string -> System.Diagnostics.Metrics.Gauge<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateGauge(Of T As Structure) (name As String) As Gauge(Of T)
類型參數
- T
參數
- name
- String
樂器名稱。 不可能。null
傳回
備註
儀表是一種用來記錄非加法值的儀器。
Gauge 的應用範例:當房間發生變化時,記錄房間背景噪音等級的值。
適用於
CreateGauge<T>(String, String, String, IEnumerable<KeyValuePair<String,Object>>)
- 來源:
- Meter.cs
- 來源:
- Meter.cs
- 來源:
- Meter.cs
- 來源:
- Meter.cs
建立一個指標指標物件。
public System.Diagnostics.Metrics.Gauge<T> CreateGauge<T>(string name, string? unit = default, string? description = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags = default) where T : struct;
member this.CreateGauge : string * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.Gauge<'T (requires 'T : struct)> (requires 'T : struct)
Public Function CreateGauge(Of T As Structure) (name As String, Optional unit As String = Nothing, Optional description As String = Nothing, Optional tags As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing) As Gauge(Of T)
類型參數
- T
參數
- name
- String
樂器名稱。 不可能。null
- unit
- String
可選的儀器計量單位。
- description
- String
可選的儀器說明。
- tags
- IEnumerable<KeyValuePair<String,Object>>
標籤可附加於計量表。
傳回
備註
儀表是一種用來記錄非加法值的儀器。
Gauge 的應用範例:當房間發生變化時,記錄房間背景噪音等級的值。