ITelemetryService.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 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
- telemetryIdentifier
- TelemetryIdentifier
- properties
- IEnumerable<DataPoint>
Optional start event properties