Share via


ITelemetryService.StartUserTask Method

Definition

Start tracking user task by posting a UserTaskEvent at the beginning of user task work, and then return a TelemetryScope<T> object. When the user task finishes, call method Dispose() to post another UserTaskEvent for end point. Because the same event name is used by both start and end events, please don't use Start or End in event name.

public Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryScope StartUserTask (Microsoft.VisualStudio.ArchitectureTools.Telemetry.TelemetryIdentifier telemetryIdentifier, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.ArchitectureTools.Telemetry.DataPoint> properties = default);
abstract member StartUserTask : Microsoft.VisualStudio.ArchitectureTools.Telemetry.TelemetryIdentifier * seq<Microsoft.VisualStudio.ArchitectureTools.Telemetry.DataPoint> -> Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryScope
Public Function StartUserTask (telemetryIdentifier As TelemetryIdentifier, Optional properties As IEnumerable(Of DataPoint) = Nothing) As ITelemetryScope

Parameters

properties
IEnumerable<DataPoint>

Optional start event properties

Returns

Applies to