DiagnosticEvent Class

DiagnosticEvent Class

Abstract:  Yes
Raised by:  Not applicable
Base Class:  CommonEvent
Derived Classes:  ErrorEvent, InternalDiagnosticEvent

The abstract DiagnosticEvent class defines properties that provide information for platform debugging, tracing, and error logging. It is modeled after the Enterprise Instrumentation (EI) class of the same name.

DiagnosticEvent implements the following properties. Note that some of these properties are nested classes.

Property

Type

Description

ComPlus

ComPlusInfo

A nested class containing COM+ context properties.

ManagedSecurity

ManagedSecurityInfo

A nested class containing properties related to security in a managed code environment.

ProcessID

Integer

The numeric ID for the process from which the event was raised.

ProcessName

String

The text name for the process from which the event was raised.

StackTrace

String

The current stack trace.

ThreadName

String

The text name for the thread from which the event was raised.

WindowsSecurity

WindowsSecurityInfo

A nested class containing properties related to Windows security issues.

Remarks

Abstract events do not appear directly in the logs. Properties inherited or defined by the abstract class appear in the logs when implemented in derived classes.

See Also

Event Logging Class Hierarchy | Logging and Analyzing Events | CommonEvent