Repository.XFRACAS.WriteMessageToDiagnosticsLog

Writes a message to the XFRACAS diagnostics log.

Syntax
.WriteMessageToDiagnosticsLog (message, entryType)

Parameters
message


 * Required. String. The message to write to the XFRACAS diagnostics log.

entryType


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

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, )