TelemetryCounterEvent<T>(TelemetryEvent, ICounter<T>) Constructor
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.
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.