MetricTelemetry Constructor (String, Double)

Initializes a new instance of the MetricTelemetry Class.Initializes a new instance of the MetricTelemetry Class.

Namespace: Microsoft.ApplicationInsights.Contracts
Assembly: Microsoft.ApplicationInsights (in Microsoft.ApplicationInsights.dll)

Usage

'Usage
Dim metricName As String
Dim metricValue As Double

Dim instance As New MetricTelemetry(metricName, metricValue)

Syntax

'Declaration
Public Sub New ( _
    metricName As String, _
    metricValue As Double _
)
public MetricTelemetry (
    string metricName,
    double metricValue
)
public:
MetricTelemetry (
    String^ metricName, 
    double metricValue
)
public MetricTelemetry (
    String metricName, 
    double metricValue
)
public function MetricTelemetry (
    metricName : String, 
    metricValue : double
)

Remarks

The default constructor initializes any fields to their default values.

Platforms

Development Platforms

Windows 8, Windows Server 2012

See Also

Reference

MetricTelemetry Class
MetricTelemetry Members
Microsoft.ApplicationInsights.Contracts Namespace