TelemetryMetricEvent Constructors
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
TelemetryMetricEvent(TelemetryEvent, IInstrument) |
Initializes a new instance of the TelemetryMetricEvent class. |
TelemetryMetricEvent(TelemetryEvent, IEnumerable<IInstrument>) |
Construct a telemetry event with a composited set of metrics. |
TelemetryMetricEvent(TelemetryEvent, IInstrument)
Initializes a new instance of the TelemetryMetricEvent class.
public TelemetryMetricEvent (Microsoft.VisualStudio.Telemetry.TelemetryEvent telemetryEvent, Microsoft.VisualStudio.Telemetry.Metrics.IInstrument metric);
new Microsoft.VisualStudio.Telemetry.Metrics.Events.TelemetryMetricEvent : Microsoft.VisualStudio.Telemetry.TelemetryEvent * Microsoft.VisualStudio.Telemetry.Metrics.IInstrument -> Microsoft.VisualStudio.Telemetry.Metrics.Events.TelemetryMetricEvent
Public Sub New (telemetryEvent As TelemetryEvent, metric As IInstrument)
Parameters
- telemetryEvent
- TelemetryEvent
The event, with all additional custom properties already set.
- metric
- IInstrument
The metric to track via the event.
Applies to
TelemetryMetricEvent(TelemetryEvent, IEnumerable<IInstrument>)
Construct a telemetry event with a composited set of metrics.
protected TelemetryMetricEvent (Microsoft.VisualStudio.Telemetry.TelemetryEvent telemetryEvent, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Telemetry.Metrics.IInstrument> metrics);
new Microsoft.VisualStudio.Telemetry.Metrics.Events.TelemetryMetricEvent : Microsoft.VisualStudio.Telemetry.TelemetryEvent * seq<Microsoft.VisualStudio.Telemetry.Metrics.IInstrument> -> Microsoft.VisualStudio.Telemetry.Metrics.Events.TelemetryMetricEvent
Protected Sub New (telemetryEvent As TelemetryEvent, metrics As IEnumerable(Of IInstrument))
Parameters
- telemetryEvent
- TelemetryEvent
The event, with all additional custom properties already set.
- metrics
- IEnumerable<IInstrument>
The set of metrics to track via the event.