Instrument 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Instrument(Meter, String, String, String) |
受保護的建構函式,初始化常見的檢測屬性,例如計量、名稱、描述和單位。 |
Instrument(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>) |
使用指定的計量、名稱、描述和單位,初始化 類別的新實例 Instrument 。 |
Instrument(Meter, String, String, String)
受保護的建構函式,初始化常見的檢測屬性,例如計量、名稱、描述和單位。
protected:
Instrument(System::Diagnostics::Metrics::Meter ^ meter, System::String ^ name, System::String ^ unit, System::String ^ description);
protected Instrument (System.Diagnostics.Metrics.Meter meter, string name, string? unit, string? description);
new System.Diagnostics.Metrics.Instrument : System.Diagnostics.Metrics.Meter * string * string * string -> System.Diagnostics.Metrics.Instrument
Protected Sub New (meter As Meter, name As String, unit As String, description As String)
參數
- meter
- Meter
建立檢測的計量。
- name
- String
檢測名稱。 不可以是 null
。
- unit
- String
選擇性的測量單位。
- description
- String
選擇性檢測描述。
備註
當建構擴充類別的物件時,檢測必須呼叫這個建構函式的所有類別。
適用於
Instrument(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>)
使用指定的計量、名稱、描述和單位,初始化 類別的新實例 Instrument 。
protected:
Instrument(System::Diagnostics::Metrics::Meter ^ meter, System::String ^ name, System::String ^ unit, System::String ^ description, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
protected Instrument (System.Diagnostics.Metrics.Meter meter, string name, string? unit, string? description, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags);
new System.Diagnostics.Metrics.Instrument : System.Diagnostics.Metrics.Meter * string * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.Instrument
Protected Sub New (meter As Meter, name As String, unit As String, description As String, tags As IEnumerable(Of KeyValuePair(Of String, Object)))
參數
- meter
- Meter
建立檢測的計量。
- name
- String
檢測名稱。 不可以是 null
。
- unit
- String
選擇性的測量單位。
- description
- String
選擇性檢測描述。
- tags
- IEnumerable<KeyValuePair<String,Object>>
選擇性檢測標記。
備註
建構擴充類別的物件時,所有擴充 Instrument 類別都需要呼叫這個建構函式。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應