Repository.XFRACAS.WriteExceptionToDiagnosticsLog

Writes exception information to the XFRACAS diagnostics log.

Syntax
.WriteExceptionToDiagnosticsLog (exObject, entryType, comment)

Parameters
exObject


 * Required. Exception. Represents the error that occurred during application execution.

entryType


 * Required. The XFRACAS diagnostics type. Can be any XFRACASDiagnosticsEntryType enumeration.

comment
 * Optional. String. The text to write to the XFRACAS diagnostics log.

Example
The following example demonstrates how to write messages and exceptions to the XFRACAS diagnostics log. It assumes that the enterprise repository has existing connections to XFRACAS entities.

VB.NET MyRepository Repository Success Boolean Success = MyRepository.ConnectToSQLRepository Success MyRepository.XFRACAS.WriteMessageToDiagnosticsLog(, XFRACASDiagnosticsEntryType.Information) ListOfXFRACASEntities NameIdPair ListofXFRACASEntities = MyRepository.XFRACAS.GetAllXFRACASEntities i Integer i = 0 ListOfXFRACASEntities.GetUpperBound(0) MessageBox.Show(ListOfXFRACASEntities(i).Name) Ex Exception MyRepository.XFRACAS.WriteExceptionToDiagosticsLog(Ex, XFRACASDiagnosticsEntryType.Error, )