<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.DataContracts.EventTelemetry

Telemetry type used to track custom events. Learn more
public TelemetryContext Context { get; }

Gets the context associated with the current telemetry item.

public IExtension Extension { get; set; }

Gets or sets gets the extension used to extend this telemetry instance using new strong typed object.

Gets item type for sampling evaluation.

public IDictionary<string, double> Metrics { get; }

Gets a dictionary of application-defined event metrics. Learn more

public string Name { get; set; }

Gets or sets the name of the event.

public IDictionary<string, string> Properties { get; }

Gets a dictionary of application-defined property names and values providing additional information about this event. Learn more

public string Sequence { get; set; }

Gets or sets the value that defines absolute order of the telemetry item.

public DateTimeOffset Timestamp { get; set; }

Gets or sets date and time when event was recorded.

public EventTelemetry()

Initializes a new instance of the EventTelemetry class.

public EventTelemetry(string name)

Initializes a new instance of the EventTelemetry class with the given name.

Deeply clones a EventTelemetry object.

public void SerializeData(ISerializationWriter serializationWriter)