Compartilhar via


DiagnosticStreamChain Class

Provides a chain of DiagnosticEvents that were recorded from a running application.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.IntelliTrace.Chain
    Microsoft.VisualStudio.IntelliTrace.RootChain
      Microsoft.VisualStudio.IntelliTrace.StreamChain
        Microsoft.VisualStudio.IntelliTrace.DiagnosticStreamChain

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

Syntax

'Declaração
Public NotInheritable Class DiagnosticStreamChain _
    Inherits StreamChain
public sealed class DiagnosticStreamChain : StreamChain
public ref class DiagnosticStreamChain sealed : public StreamChain
[<Sealed>]
type DiagnosticStreamChain =  
    class
        inherit StreamChain
    end
public final class DiagnosticStreamChain extends StreamChain

The DiagnosticStreamChain type exposes the following members.

Properties

  Name Description
Public property Access Gets the type of access that is permitted to the chain. (Inherited from RootChain.)
Public property AfterLastToken Gets an EventToken for the position that is immediately after the current LastToken. (Inherited from StreamChain.)
Public property BeforeFirstToken Gets an EventToken for the position that is immediately before FirstToken. (Inherited from Chain.)
Public property CanGetCount Gets a value that determines whether the chain supports Count. (Inherited from Chain.)
Public property CanGetLastToken Gets a value that determines whether the chain supports LastToken. (Inherited from Chain.)
Public property CanGetPreviousToken Gets a value that determines whether the chain supports GetPreviousToken. (Inherited from Chain.)
Public property Count Gets the number of events in the chain. (Inherited from Chain.)
Public property FirstToken Gets an EventToken for the first event in the chain. (Inherited from StreamChain.)
Public property FirstValidToken Gets an EventToken for the first valid event in the chain. (Inherited from StreamChain.)
Public property IsEmpty Gets a value that indicates whether the chain is empty. (Inherited from StreamChain.)
Public property LastToken Gets an EventToken for the last event in the chain. (Inherited from Chain.)

Top

Methods

  Name Description
Public method AppendEvent Appends an IntelliTraceEvent to a stream. (Inherited from StreamChain.)
Protected method ConvertToBytes When overridden in a derived class, converts an IntelliTraceEvent to a raw event. (Inherited from StreamChain.)
Protected method ConvertToEvent When overridden in a derived class, converts a raw event to an IntelliTraceEvent. (Inherited from StreamChain.)
Public method Dispose() (Inherited from Chain.)
Protected method Dispose(Boolean) Releases the resources that are used by this chain. (Inherited from StreamChain.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEvent Gets an IntelliTraceEvent for the specified EventToken. (Inherited from StreamChain.)
Public method GetEvents Gets multiple IntelliTraceEvents from a start EventToken up to but excluding an end EventToken. (Inherited from StreamChain.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetNextToken Gets the EventToken for the next event after the given EventToken. (Inherited from StreamChain.)
Public method GetPreviousToken Gets the EventToken for the previous event before the given EventToken. (Inherited from Chain.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsValidEventType Determines whether the given IntelliTraceEvent is valid for this chain. (Overrides Chain.IsValidEventType(IntelliTraceEvent).)
Public method IsValidToken Determines whether the given EventToken is valid for this chain. (Inherited from StreamChain.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method ReadEventBytes When overridden in a derived class, reads a single raw event from the stream. (Inherited from StreamChain.)
Protected method ReadEventLength When overridden in a derived class, gets the length of the next event in the stream. (Inherited from StreamChain.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

DiagnosticStreamChain is a StreamChain and loads data into memory only as GetEvent or GetEvents is called.

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

DiagnosticChain