ClientAnalyticsChannel.StartTimedEvent Method (String)

Create an event timer. Use the returned object to log the end of the event.

Namespace:  Microsoft.ApplicationInsights.Telemetry.WindowsStore Assembly:  Microsoft.ApplicationInsights.Telemetry.WindowsStore (in Microsoft.ApplicationInsights.Telemetry.WindowsStore.dll)

Syntax

'Declaration
Public Function StartTimedEvent ( _
    eventName As String _
) As TimedAnalyticsEvent
public TimedAnalyticsEvent StartTimedEvent(
    string eventName
)
public:
virtual TimedAnalyticsEvent^ StartTimedEvent(
    String^ eventName
) sealed
abstract StartTimedEvent : 
        eventName:string -> TimedAnalyticsEvent  
override StartTimedEvent : 
        eventName:string -> TimedAnalyticsEvent
public final function StartTimedEvent(
    eventName : String
) : TimedAnalyticsEvent

Parameters

  • eventName
    Type: System.String

    Your name for the event. To arrange events in a hierarchy in the reports, use names like 'parent/child'.

Return Value

Type: Microsoft.ApplicationInsights.Telemetry.WindowsStore.TimedAnalyticsEvent Timer object that you can End to log the event, or Cancel.

Implements

IClientAnalyticsChannel.StartTimedEvent(String)

.NET Framework Security

See Also

Reference

ClientAnalyticsChannel Class

StartTimedEvent Overload

Microsoft.ApplicationInsights.Telemetry.WindowsStore Namespace