StreamChain Class
Provides a stream of events that was recorded from a running application.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.IntelliTrace.Chain
Microsoft.VisualStudio.IntelliTrace.RootChain
Microsoft.VisualStudio.IntelliTrace.StreamChain
Microsoft.VisualStudio.IntelliTrace.CheckpointStreamChain
Microsoft.VisualStudio.IntelliTrace.DiagnosticStreamChain
Microsoft.VisualStudio.IntelliTrace.ExceptionIndexStreamChain
Microsoft.VisualStudio.IntelliTrace.MetadataStreamChain
Microsoft.VisualStudio.IntelliTrace.ProcessStreamChain
Microsoft.VisualStudio.IntelliTrace.TestStreamChain
Microsoft.VisualStudio.IntelliTrace.ThreadStreamChain
Namespace: Microsoft.VisualStudio.IntelliTrace
Assembly: Microsoft.VisualStudio.IntelliTrace (in Microsoft.VisualStudio.IntelliTrace.dll)
Syntax
'Déclaration
Public MustInherit Class StreamChain _
Inherits RootChain
public abstract class StreamChain : RootChain
public ref class StreamChain abstract : public RootChain
[<AbstractClass>]
type StreamChain =
class
inherit RootChain
end
public abstract class StreamChain extends RootChain
The StreamChain type exposes the following members.
Properties
Name | Description | |
---|---|---|
Access | Gets the type of access that is permitted to the chain. (Inherited from RootChain.) | |
AfterLastToken | Gets an EventToken for the position that is immediately after the current LastToken. (Overrides Chain.AfterLastToken.) | |
BeforeFirstToken | Gets an EventToken for the position that is immediately before FirstToken. (Inherited from Chain.) | |
CanGetCount | Gets a value that determines whether the chain supports Count. (Inherited from Chain.) | |
CanGetLastToken | Gets a value that determines whether the chain supports LastToken. (Inherited from Chain.) | |
CanGetPreviousToken | Gets a value that determines whether the chain supports GetPreviousToken. (Inherited from Chain.) | |
Count | Gets the number of events in the chain. (Inherited from Chain.) | |
FirstToken | Gets an EventToken for the first event in the chain. (Overrides Chain.FirstToken.) | |
FirstValidToken | Gets an EventToken for the first valid event in the chain. (Overrides Chain.FirstValidToken.) | |
IsEmpty | Gets a value that indicates whether the chain is empty. (Overrides Chain.IsEmpty.) | |
LastToken | Gets an EventToken for the last event in the chain. (Inherited from Chain.) |
Top
Methods
Name | Description | |
---|---|---|
AppendEvent | Appends an IntelliTraceEvent to a stream. (Overrides RootChain.AppendEvent(IntelliTraceEvent).) | |
ConvertToBytes | When overridden in a derived class, converts an IntelliTraceEvent to a raw event. | |
ConvertToEvent | When overridden in a derived class, converts a raw event to an IntelliTraceEvent. | |
Dispose() | (Inherited from Chain.) | |
Dispose(Boolean) | Releases the resources that are used by this chain. (Overrides Chain.Dispose(Boolean).) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEvent | Gets an IntelliTraceEvent for the specified EventToken. (Overrides Chain.GetEvent(EventToken).) | |
GetEvents | Gets multiple IntelliTraceEvents from a start EventToken up to but excluding an end EventToken. (Overrides Chain.GetEvents(EventToken, EventToken).) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetNextToken | Gets the EventToken for the next event after the given EventToken. (Overrides Chain.GetNextToken(EventToken).) | |
GetPreviousToken | Gets the EventToken for the previous event before the given EventToken. (Inherited from Chain.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsValidEventType | When overridden in a derived class, determines whether the given IntelliTraceEvent is valid for this chain. (Inherited from Chain.) | |
IsValidToken | Determines whether the given EventToken is valid for this chain. (Overrides Chain.IsValidToken(EventToken).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ReadEventBytes | When overridden in a derived class, reads a single raw event from the stream. | |
ReadEventLength | When overridden in a derived class, gets the length of the next event in the stream. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
StreamChain provides on-demand access and instantiation of events in the stream when GetEvent or GetEvents is called. IntelliTraceEvents are not stored by the StreamChain.
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.