Instrument 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Instrument(Meter, String) | |
Instrument(Meter, String, String, String) |
用于初始化常用检测属性(如计量、名称、说明和单位)的受保护构造函数。 |
Instrument(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>) |
使用指定的计量、名称、说明和单位初始化 类的新实例 Instrument 。 |
Instrument(Meter, String)
protected:
Instrument(System::Diagnostics::Metrics::Meter ^ meter, System::String ^ name);
protected Instrument (System.Diagnostics.Metrics.Meter meter, string name);
new System.Diagnostics.Metrics.Instrument : System.Diagnostics.Metrics.Meter * string -> System.Diagnostics.Metrics.Instrument
Protected Sub New (meter As Meter, name As String)
参数
- meter
- Meter
- name
- String
适用于
Instrument(Meter, String, String, String)
- Source:
- Instrument.cs
- Source:
- Instrument.cs
- Source:
- Instrument.cs
用于初始化常用检测属性(如计量、名称、说明和单位)的受保护构造函数。
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 必须调用此构造函数的所有类。
适用于
Instrument(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>)
- Source:
- Instrument.cs
- Source:
- Instrument.cs
使用指定的计量、名称、说明和单位初始化 类的新实例 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);
protected Instrument (System.Diagnostics.Metrics.Meter meter, string name, string? unit = default, string? description = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags = default);
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)))
Protected Sub New (meter As Meter, name As String, Optional unit As String = Nothing, Optional description As String = Nothing, Optional tags As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing)
参数
- meter
- Meter
创建检测的计量器。
- name
- String
检测名称。 不能为 null
。
- unit
- String
可选的仪表度量单位。
- description
- String
可选的仪器说明。
- tags
- IEnumerable<KeyValuePair<String,Object>>
可选检测标记。
注解
所有扩展 Instrument 类在构造扩展类的对象时都需要调用此构造函数。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈