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

Определение

Перегрузки

Имя Описание
Instrument(Meter, String)

Создает новый экземпляр Instrument.

Instrument(Meter, String, String, String)

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

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

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

Instrument(Meter, String)

Исходный код:
Instrument.cs
Исходный код:
Instrument.cs
Исходный код:
Instrument.cs
Исходный код:
Instrument.cs

Создает новый экземпляр Instrument.

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

Счетчик, создавший инструмент. Не может иметь значение null.

name
String

Имя инструмента. Не может иметь значение null.

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

Instrument(Meter, String, String, String)

Исходный код:
Instrument.cs
Исходный код:
Instrument.cs
Исходный код:
Instrument.cs
Исходный код:
Instrument.cs
Исходный код:
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.cs
Исходный код:
Instrument.cs
Исходный код:
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 = default, string? description = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags = default);
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, Optional unit As String = Nothing, Optional description As String = Nothing, Optional tags As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing)
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 классы, должны вызывать этот конструктор при создании объекта расширенного класса.

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