Xamarin.Insights.Report Method
Report allows the developer to report exceptions to Insights when they are caught, this allows for the tracking of exceptions without crashing.

Syntax

public static void Report (Exception exception, ReportSeverity warningLevel)

Parameters

exception
An Exception data type, the developer can also attach extra data to the .Data parameter of the exception.
warningLevel
A warning level for the given report, can be ReportSeverity.Warning or ReportSeverity.Error.

Remarks

This sample shows how to call the Insights.Report(Exception, ReportSeverity) method.

C# Example

try {
   ExceptionThrowingFunction();
}
catch (Exception exception) {
   exception.Data["This is some extra data"] = "A cat's field of vision is about 200 degrees.";
   Insights.Report(exception);
}
            

Requirements

Namespace: Xamarin
Assembly: Xamarin.Insights (in Xamarin.Insights.dll)
Assembly Versions: 0.2.0.0, 1.0.0.0