ITelemetryRecorder.StartUserTask Method
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.
Start tracking a user task by posting a UserTaskEvent at the beginning of the user task, and then returns a TelemetryScope<T> object. When the user task finishes, call Dispose() to post another UserTaskEvent for the 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, Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryScope parentScope = default);
abstract member StartUserTask : Microsoft.VisualStudio.ArchitectureTools.Telemetry.TelemetryIdentifier * seq<Microsoft.VisualStudio.ArchitectureTools.Telemetry.DataPoint> * Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryScope -> Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryScope
Public Function StartUserTask (telemetryIdentifier As TelemetryIdentifier, Optional properties As IEnumerable(Of DataPoint) = Nothing, Optional parentScope As ITelemetryScope = Nothing) As ITelemetryScope
Parameters
- telemetryIdentifier
- TelemetryIdentifier
- properties
- IEnumerable<DataPoint>
Optional start event properties
- parentScope
- ITelemetryScope
Optional ITelemetryScope