RecordException Method (Log)
Record an unexpected exception to the log without displaying a user prompt.
Shows an example of both the record and report exception commands. Only one needs to be used for any single exception.
//this option records the exception but does not display any user interface.
Log.RecordException(ex, "Exceptions", true);
//this option records the exception and displays a user interface, optionally waiting for the user
//to decide to continue or exit before returning.
Log.ReportException(ex, "Exceptions", true, true);
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2