ClientAnalyticsChannel.StartTimedEvent Method (String, IDictionary<String, Object>)

Creates 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, _
    properties As IDictionary(Of String, Object) _
) As TimedAnalyticsEvent
public TimedAnalyticsEvent StartTimedEvent(
    string eventName,
    IDictionary<string, Object> properties
)
public:
virtual TimedAnalyticsEvent^ StartTimedEvent(
    String^ eventName, 
    IDictionary<String^, Object^>^ properties
) sealed
abstract StartTimedEvent : 
        eventName:string * 
        properties:IDictionary<string, Object> -> TimedAnalyticsEvent  
override StartTimedEvent : 
        eventName:string * 
        properties:IDictionary<string, Object> -> TimedAnalyticsEvent
public final function StartTimedEvent(
    eventName : String, 
    properties : IDictionary<String, Object>
) : 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, IDictionary<String, Object>)

.NET Framework Security

See Also

Reference

ClientAnalyticsChannel Class

StartTimedEvent Overload

Microsoft.ApplicationInsights.Telemetry.WindowsStore Namespace