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

Microsoft.ApplicationInsights.DataContracts.ExceptionTelemetry

Telemetry type used to track exceptions. This will capture TypeName, Message, and CallStack. Learn more
public TelemetryContext Context { get; }

Gets the context associated with the current telemetry item.

public Exception Exception { get; set; }

Gets or sets the original exception tracked by this ITelemetry.

Gets the list of ExceptionDetailsInfo. User can modify the contents of individual object, but not the list itself.

public IExtension Extension { get; set; }

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

public ExceptionHandledAt HandledAt { get; set; }

Gets or sets the value indicated where the exception was handled.

Gets item type for sampling evaluation.

public string Message { get; set; }

Gets or sets ExceptionTelemetry message.

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

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

public string ProblemId { get; set; }

Gets or sets the problemId.

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

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

public string Sequence { get; set; }

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

public SeverityLevel? SeverityLevel { get; set; }

Gets or sets Exception severity level.

public DateTimeOffset Timestamp { get; set; }

Gets or sets date and time when telemetry was recorded.

Initializes a new instance of the ExceptionTelemetry class with empty properties.

public ExceptionTelemetry(Exception exception)

Initializes a new instance of the ExceptionTelemetry class with empty properties.

public ExceptionTelemetry(IEnumerable<ExceptionDetailsInfo> exceptionDetailsInfoList, SeverityLevel? severityLevel, string problemId, IDictionary<string, string> properties, IDictionary<string, double> measurements)

Initializes a new instance of the ExceptionTelemetry class.

Deeply clones a ExceptionTelemetry object.

public void SerializeData(ISerializationWriter serializationWriter)

public void SetParsedStack(StackFrame[] frames)

Set parsedStack from an array of StackFrame objects.