Share via


TelemetryCounterEvent<T>(TelemetryEvent, ICounter<T>) Constructor

Definition

Initializes a new instance of the TelemetryCounterEvent<T> class.

public TelemetryCounterEvent (Microsoft.VisualStudio.Telemetry.TelemetryEvent telemetryEvent, Microsoft.VisualStudio.Telemetry.Metrics.ICounter<T> counter);
new Microsoft.VisualStudio.Telemetry.Metrics.Events.TelemetryCounterEvent<'T (requires 'T : struct)> : Microsoft.VisualStudio.Telemetry.TelemetryEvent * Microsoft.VisualStudio.Telemetry.Metrics.ICounter<'T (requires 'T : struct)> -> Microsoft.VisualStudio.Telemetry.Metrics.Events.TelemetryCounterEvent<'T (requires 'T : struct)>
Public Sub New (telemetryEvent As TelemetryEvent, counter As ICounter(Of T))

Parameters

telemetryEvent
TelemetryEvent

The event, with all additional custom properties already set.

counter
ICounter<T>

The counter to track via the event.

Applies to