편집

다음을 통해 공유


Meter Constructors

Definition

Overloads

Meter(MeterOptions)

Initialize a new instance of the Meter using the MeterOptions.

Meter(String)

Initializes a new instance of Meter using the specified meter name.

Meter(String, String)

Initializes a new instance of Meter using the specified meter name and version.

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

Initializes a new instance of the Meter using the meter name and version.

Meter(MeterOptions)

Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs

Initialize a new instance of the Meter using the MeterOptions.

public:
 Meter(System::Diagnostics::Metrics::MeterOptions ^ options);
public Meter (System.Diagnostics.Metrics.MeterOptions options);
new System.Diagnostics.Metrics.Meter : System.Diagnostics.Metrics.MeterOptions -> System.Diagnostics.Metrics.Meter
Public Sub New (options As MeterOptions)

Parameters

options
MeterOptions

The options object that is used to create a meter using its properties.

Applies to

Meter(String)

Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs

Initializes a new instance of Meter using the specified meter name.

public:
 Meter(System::String ^ name);
public Meter (string name);
new System.Diagnostics.Metrics.Meter : string -> System.Diagnostics.Metrics.Meter
Public Sub New (name As String)

Parameters

name
String

The Meter name.

Applies to

Meter(String, String)

Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs

Initializes a new instance of Meter using the specified meter name and version.

public:
 Meter(System::String ^ name, System::String ^ version);
public Meter (string name, string? version);
new System.Diagnostics.Metrics.Meter : string * string -> System.Diagnostics.Metrics.Meter
Public Sub New (name As String, version As String)

Parameters

name
String

The Meter name.

version
String

The optional Meter version.

Applies to

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

Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs
Source:
Meter.cs

Initializes a new instance of the Meter using the meter name and version.

public Meter (string name, string? version, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags, object? scope = default);
new System.Diagnostics.Metrics.Meter : string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> * obj -> System.Diagnostics.Metrics.Meter
Public Sub New (name As String, version As String, tags As IEnumerable(Of KeyValuePair(Of String, Object)), Optional scope As Object = Nothing)

Parameters

name
String

The Meter name.

version
String

The optional Meter version.

tags
IEnumerable<KeyValuePair<String,Object>>

The optional Meter tags.

scope
Object

The optional Meter scope.

Remarks

You can use the scope object to link several Meters with a particular scope. For instance, a dependency injection container can choose to associate all Meters that are created within the container with its own scope. If the scope object is null, it indicates that the Meter is not linked to any particular scope.

Applies to