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.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.
Implements
IClientAnalyticsChannel.StartTimedEvent(String, IDictionary<String, Object>)
.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
StartTimedEvent Overload
Microsoft.ApplicationInsights.Telemetry.WindowsStore Namespace