Share via


ListChain Class

Provides a list of events that was recorded from a running application.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.IntelliTrace.Chain
    Microsoft.VisualStudio.IntelliTrace.DerivedChain
      Microsoft.VisualStudio.IntelliTrace.ListChain
        Microsoft.VisualStudio.IntelliTrace.CheckpointChain
        Microsoft.VisualStudio.IntelliTrace.ProcessChain
        Microsoft.VisualStudio.IntelliTrace.TestChain

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

Syntax

'Declaration
Public MustInherit Class ListChain _
    Inherits DerivedChain
public abstract class ListChain : DerivedChain
public ref class ListChain abstract : public DerivedChain
[<AbstractClass>]
type ListChain =  
    class
        inherit DerivedChain
    end
public abstract class ListChain extends DerivedChain

The ListChain type exposes the following members.

Constructors

  Name Description
Protected method ListChain Initializes a new instance of the ListChain class.

Top

Properties

  Name Description
Public property AfterLastToken Gets an EventToken that represents a position that is immediately after the current LastToken. (Overrides Chain.AfterLastToken.)
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. (Overrides Chain.CanGetCount.)
Public property CanGetLastToken Gets a value that determines whether the chain supports LastToken. (Overrides Chain.CanGetLastToken.)
Public property CanGetPreviousToken Gets a value that determines whether the chain supports GetPreviousToken. (Overrides Chain.CanGetPreviousToken.)
Public property Count Gets the number of events in the chain. (Overrides Chain.Count.)
Protected property EventList Gets the internal list for this ListChain.
Public property FirstToken Gets an EventToken for the first event in the chain. (Overrides Chain.FirstToken.)
Public property FirstValidToken Gets an EventToken for the first valid event in the chain. (Overrides Chain.FirstValidToken.)
Public property IsEmpty Gets a value that indicates whether the chain is empty. (Overrides Chain.IsEmpty.)
Public property LastToken Gets an EventToken for the last event in the chain. (Overrides Chain.LastToken.)

Top

Methods

  Name Description
Public method Dispose() (Inherited from Chain.)
Protected method Dispose(Boolean) Releases the resources that are used by this chain. (Overrides Chain.Dispose(Boolean).)
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. (Overrides Chain.GetEvent(EventToken).)
Public method GetEvents Gets multiple IntelliTraceEvents from a start EventToken up to but excluding an end EventToken. (Overrides Chain.GetEvents(EventToken, EventToken).)
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. (Overrides Chain.GetNextToken(EventToken).)
Public method GetPreviousToken Gets the EventToken for the previous event before the given EventToken. (Overrides Chain.GetPreviousToken(EventToken).)
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. (Overrides Chain.IsValidToken(EventToken).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Refresh Refreshes the event list from the chain sources and loads each event from the chain into memory. (Overrides DerivedChain.Refresh().)
Public method ToSourceToken Converts an EventToken for this chain to an EventToken for the source Chain.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

When Refresh is called, ListChain loads all chain data into memory and stores each instantiated IntelliTraceEvent.

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

StreamChain