DiagnosticEvent Class

Describes a DiagnosticEvent.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.IntelliTrace.IntelliTraceEvent
    Microsoft.VisualStudio.IntelliTrace.OrdinalEvent
      Microsoft.VisualStudio.IntelliTrace.DiagnosticEvent

Namespace:  Microsoft.VisualStudio.IntelliTrace
Assembly:  Microsoft.IntelliTrace.12.0.0 (in Microsoft.IntelliTrace.12.0.0.dll)

Syntax

'Declaration
Public NotInheritable Class DiagnosticEvent _
    Inherits OrdinalEvent
public sealed class DiagnosticEvent : OrdinalEvent
public ref class DiagnosticEvent sealed : public OrdinalEvent
[<Sealed>]
type DiagnosticEvent =  
    class 
        inherit OrdinalEvent 
    end
public final class DiagnosticEvent extends OrdinalEvent

The DiagnosticEvent type exposes the following members.

Properties

  Name Description
Public property ActivityId
Public property DataBytes Gets the raw data bytes that were collected with this DiagnosticEvent.
Public property EventId Gets the event id for this DiagnosticEvent.
Public property EventTime Get the event time of the DiagnosticEvent.
Public property Name Gets the name of the DiagnosticEvent.
Public property NativeThreadId Gets the native thread ID for the thread where the DiagnosticEvent occurred.
Public property Ordinal Gets or sets the ordinal value. (Inherited from OrdinalEvent.)
Public property StackFrames Gets the call stack for the thread at this DiagnosticEvent.
Public property StackFramesInCommon Gets the number of stack frames that are in common with the previous DiagnosticEvent.

Top

Methods

  Name Description
Public method Compare Compares one instance with another instance and returns an integer that indicates whether the current instance comes before, follows, or occurs in the same sort position order as the other instance. (Inherited from OrdinalEvent.)
Public method CompareTo(Object) Compares the current instance with another instance and returns an integer that indicates whether the current instance comes before, follows, or occurs in the same position in the sort order as the other instance. (Inherited from OrdinalEvent.)
Public method CompareTo(OrdinalEvent) Compares the current instance with another instance and returns an integer that indicates whether the current instance comes before, follows, or occurs in the same sort position as the other instance. (Inherited from OrdinalEvent.)
Public method Equals(Object) Determines whether the specified object is equal to the current OrdinalEvent. (Inherited from OrdinalEvent.)
Public method GetHashCode Gets a hash code for this OrdinalEvent. (Inherited from OrdinalEvent.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

A DiagnosticEvent is used to describe a specific event during the run of an application. Typically this will be an event where the application interacts with the platform, library, or framework, or where the debugger interacts with the application during debugging. The DiagnosticEvent is one event in the DiagnosticChain or DiagnosticStreamChain.

To decode the collected data, use ResolvedDiagnosticEvent.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.IntelliTrace Namespace