VSTelemetryMeterProvider.CreateMeter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateMeter(String) |
Initializes a new instance of Meter using the specified meter name. This Meter is suitable for measuring + reporting instruments via standard VS Telemetry. |
| CreateMeter(String, String) |
Initializes a new instance of Meter using the specified meter name and version. This Meter is suitable for measuring + reporting instruments via standard VS Telemetry. |
CreateMeter(String)
Initializes a new instance of Meter using the specified meter name. This Meter is suitable for measuring + reporting instruments via standard VS Telemetry.
public Microsoft.VisualStudio.Telemetry.Metrics.IMeter CreateMeter(string name);
abstract member CreateMeter : string -> Microsoft.VisualStudio.Telemetry.Metrics.IMeter
override this.CreateMeter : string -> Microsoft.VisualStudio.Telemetry.Metrics.IMeter
Public Function CreateMeter (name As String) As IMeter
Parameters
- name
- String
The Meter name.
Returns
The new Meter.
Implements
Applies to
CreateMeter(String, String)
Initializes a new instance of Meter using the specified meter name and version. This Meter is suitable for measuring + reporting instruments via standard VS Telemetry.
public Microsoft.VisualStudio.Telemetry.Metrics.IMeter CreateMeter(string name, string version = default);
abstract member CreateMeter : string * string -> Microsoft.VisualStudio.Telemetry.Metrics.IMeter
override this.CreateMeter : string * string -> Microsoft.VisualStudio.Telemetry.Metrics.IMeter
Public Function CreateMeter (name As String, Optional version As String = Nothing) As IMeter
Parameters
- name
- String
The Meter name.
- version
- String
The optional Meter version.
Returns
The new Meter.
Implements
Exceptions
Throws if the meter's name is invalid.