Aracılığıyla paylaş


Instrument Oluşturucular

Tanım

Aşırı Yüklemeler

Instrument(Meter, String)
Instrument(Meter, String, String, String)

Ölçüm, ad, açıklama ve birim gibi ortak araç özelliklerini başlatmak için korumalı oluşturucu.

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

Belirtilen ölçüm, ad, açıklama ve birim ile sınıfının yeni bir örneğini Instrument başlatır.

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)

Parametreler

meter
Meter
name
String

Şunlara uygulanır

Instrument(Meter, String, String, String)

Kaynak:
Instrument.cs
Kaynak:
Instrument.cs
Kaynak:
Instrument.cs

Ölçüm, ad, açıklama ve birim gibi ortak araç özelliklerini başlatmak için korumalı oluşturucu.

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)

Parametreler

meter
Meter

Aleti oluşturan ölçüm.

name
String

Alet adı. olamaz null.

unit
String

İsteğe bağlı ölçüm aleti birimi.

description
String

İsteğe bağlı araç açıklaması.

Açıklamalar

Genişletilmiş sınıfın nesneleri oluşturulurken Instrument'ın bu oluşturucuyu çağırması gereken tüm sınıflar.

Şunlara uygulanır

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

Kaynak:
Instrument.cs
Kaynak:
Instrument.cs

Belirtilen ölçüm, ad, açıklama ve birim ile sınıfının yeni bir örneğini Instrument başlatır.

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)

Parametreler

meter
Meter

Aleti oluşturan ölçüm.

name
String

Alet adı. olamaz null.

unit
String

İsteğe bağlı ölçüm cihaz birimi.

description
String

İsteğe bağlı bir araç açıklaması.

tags
IEnumerable<KeyValuePair<String,Object>>

İsteğe bağlı cihaz etiketleri.

Açıklamalar

Genişleten tüm sınıfların Instrument , genişletilmiş sınıfın nesnesini oluştururken bu oluşturucuyu çağırması gerekir.

Şunlara uygulanır