IClientAnalyticsChannel.StartTimedEvent Method (String, IDictionary<String, Object>)
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
Function StartTimedEvent ( _
eventName As String, _
properties As IDictionary(Of String, Object) _
) As TimedAnalyticsEvent
TimedAnalyticsEvent StartTimedEvent(
string eventName,
IDictionary<string, Object> properties
)
TimedAnalyticsEvent^ StartTimedEvent(
String^ eventName,
IDictionary<String^, Object^>^ properties
)
abstract StartTimedEvent :
eventName:string *
properties:IDictionary<string, Object> -> TimedAnalyticsEvent
function StartTimedEvent(
eventName : String,
properties : IDictionary<String, Object>
) : TimedAnalyticsEvent
Parameters
eventName
Type: System.StringYour name for the event. To arrange events in a hierarchy in the reports, use names like 'parent/child'.
properties
Type: System.Collections.Generic.IDictionary<String, Object>Named values of your choice. They can be used to filter reports in Application Insights. One property can have a numeric value.
Return Value
Type: Microsoft.ApplicationInsights.Telemetry.WindowsStore.TimedAnalyticsEvent Timer object that you can End to log the event, or Cancel.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IClientAnalyticsChannel Interface
StartTimedEvent Overload
Microsoft.ApplicationInsights.Telemetry.WindowsStore Namespace