IAnalyticsRequest.StartTimedEvent Method (String, IEnumerable<KeyValuePair<String, Object>>)

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

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

Syntax

'Declaration
Function StartTimedEvent ( _
    eventName As String, _
    properties As IEnumerable(Of KeyValuePair(Of String, Object)) _
) As ITimedAnalyticsEvent
ITimedAnalyticsEvent StartTimedEvent(
    string eventName,
    IEnumerable<KeyValuePair<string, Object>> properties
)
ITimedAnalyticsEvent^ StartTimedEvent(
    String^ eventName, 
    IEnumerable<KeyValuePair<String^, Object^>>^ properties
)
abstract StartTimedEvent : 
        eventName:string * 
        properties:IEnumerable<KeyValuePair<string, Object>> -> ITimedAnalyticsEvent
function StartTimedEvent(
    eventName : String, 
    properties : IEnumerable<KeyValuePair<String, Object>>
) : ITimedAnalyticsEvent

Parameters

  • eventName
    Type: System.String

    Name of the timed event. To arrange events in a hierarchy in the reports, use names like 'parent/child'.

Return Value

Type: Microsoft.ApplicationInsights.Telemetry.Services.ITimedAnalyticsEvent Use the object to log the end of the event.

.NET Framework Security

See Also

Reference

IAnalyticsRequest Interface

StartTimedEvent Overload

Microsoft.ApplicationInsights.Telemetry.Services Namespace