Chain Class

Represents a chain of events that are recorded from a running application.

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

public abstract class Chain : IDisposable, 
	IEnumerable<IntelliTraceEvent>, IEnumerable

The Chain type exposes the following members.

  NameDescription
Protected methodChainConstructor for Chain.
Top

  NameDescription
Public propertyAfterLastTokenWhen overridden in a derived class, gets an EventToken for the position that is immediately after the current LastToken.
Public propertyBeforeFirstTokenGets an EventToken for the position that is immediately before FirstToken.
Public propertyCanGetCountGets a value that determines whether the chain supports Count.
Public propertyCanGetLastTokenGets a value that determines whether the chain supports LastToken.
Public propertyCanGetPreviousTokenGets a value that determines whether the chain supports GetPreviousToken.
Public propertyCountGets the number of events in the chain.
Public propertyFirstTokenWhen overridden in a derived class, gets an EventToken for the first event in the chain.
Public propertyFirstValidTokenWhen overridden in a derived class, gets an EventToken for the first valid event in the chain.
Public propertyIsEmptyWhen overridden in a derived class, gets a value that indicates whether the chain is empty.
Public propertyLastTokenGets an EventToken for the last event in the chain.
Top

  NameDescription
Public methodDispose()
Protected methodDispose(Boolean)Releases the resources that are used by this chain.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumerator()
Protected methodGetEnumerator<TEvent>()
Public methodGetEventWhen overridden in a derived class, gets an IntelliTraceEvent for the specified EventToken.
Public methodGetEventsWhen overridden in a derived class, gets multiple IntelliTraceEvents from a start EventToken up to but excluding an end EventToken.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetNextTokenWhen overridden in a derived class, gets the EventToken for the next event after the given EventToken.
Public methodGetPreviousTokenGets the EventToken for the previous event before the given EventToken.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIsValidEventTypeWhen overridden in a derived class, determines whether the given IntelliTraceEvent is valid for this chain.
Public methodIsValidTokenWhen overridden in a derived class, determines whether the given EventToken is valid for this chain.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodTokens
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Chains can be accessed in random order and traversed forward or backward. Because a chain can be examined when the application is still running, the chain can grow (or decrease) between inspections. Enumerating through events in a chain is usually performed by calling FirstValidToken to get the first EventToken in the chain and then calling GetNextToken to move forward (or GetPreviousToken to move backward).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft