TraceContextRecord.ErrorInfo Property

Gets the Exception associated with the trace record, if one is available.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public:
property Exception^ ErrorInfo {
	Exception^ get ();
}
/** @property */
public Exception get_ErrorInfo ()

public function get ErrorInfo () : Exception

Not applicable.

Property Value

A Exception associated with the trace record, if one exists, or a null reference (Nothing in Visual Basic).

You can include an exception in a trace record if you are using tracing to debug an application or troubleshoot error and exception handling. The ErrorInfo property is a null reference (Nothing in Visual Basic) when the trace record is associated with one of the TraceContext methods that does not have an explicit errorInfo parameter or no exception is provided.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: