다음을 통해 공유


MetricTelemetry Constructors

Definition

Overloads

MetricTelemetry()

Initializes a new instance of the MetricTelemetry class with empty properties.

MetricTelemetry(String, Double)

Initializes a new instance of the MetricTelemetry class with the specified metricName and metricValue.

MetricTelemetry()

Initializes a new instance of the MetricTelemetry class with empty properties.

public:
 MetricTelemetry();
public MetricTelemetry ();
Public Sub New ()

Applies to

MetricTelemetry(String, Double)

Initializes a new instance of the MetricTelemetry class with the specified metricName and metricValue.

public:
 MetricTelemetry(System::String ^ metricName, double metricValue);
public MetricTelemetry (string metricName, double metricValue);
new Microsoft.VisualStudio.ApplicationInsights.DataContracts.MetricTelemetry : string * double -> Microsoft.VisualStudio.ApplicationInsights.DataContracts.MetricTelemetry
Public Sub New (metricName As String, metricValue As Double)

Parameters

metricName
String
metricValue
Double

Exceptions

The metricName is null or empty string.

Applies to