TelemetryClient.TrackEvent Method (String)

Send an EventTelemetry for display in Diagnostic Search and aggregation in Metrics Explorer.

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

Usage

'Usage
Dim instance As TelemetryClient
Dim eventName As String

instance.TrackEvent(eventName)

Syntax

'Declaration
Public Sub TrackEvent ( _
    eventName As String _
)
public void TrackEvent (
    string eventName
)
public:
void TrackEvent (
    String^ eventName
)
public void TrackEvent (
    String eventName
)
public function TrackEvent (
    eventName : String
)

Parameters

  • eventName
    A name for the event.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 8, Windows Server 2012

See Also

Reference

TelemetryClient Class
TelemetryClient Members
Microsoft.ApplicationInsights Namespace