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.StringName of the timed event. To arrange events in a hierarchy in the reports, use names like 'parent/child'.
properties
Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, Object>>Named values of your choice. Properties can be used to filter events in the reports. One property can have a numeric value.
Return Value
Type: Microsoft.ApplicationInsights.Telemetry.Services.ITimedAnalyticsEvent Use the object to log the end of the event.
.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
IAnalyticsRequest Interface
StartTimedEvent Overload
Microsoft.ApplicationInsights.Telemetry.Services Namespace