Поделиться через


Instrument Конструкторы

Определение

Перегрузки

Instrument(Meter, String, String, String)

Защищенный конструктор для инициализации общих свойств инструментов, таких как метр, имя, описание и единица измерения.

Instrument(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>)

Инициализирует новый экземпляр Instrument класса с указанными единицами измерения, именем, описанием и единицей измерения.

Instrument(Meter, String, String, String)

Исходный код:
Instrument.cs
Исходный код:
Instrument.cs
Исходный код:
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(Meter, String, String, String, IEnumerable<KeyValuePair<String,Object>>)

Исходный код:
Instrument.cs
Исходный код:
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);
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 классы должны вызывать этот конструктор при построении объекта расширенного класса.

Применяется к