FilteredListChain Class

Provides a filtered chain of events that was recorded from a running application.

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

public abstract class FilteredListChain : DerivedChain

The FilteredListChain type exposes the following members.

Protected methodFilteredListChainInitializes a new instance of the FilteredListChain class.

Public propertyAfterLastTokenGets an EventToken for the position that is immediately after the current LastToken. (Overrides Chain.AfterLastToken.)
Public propertyBeforeFirstTokenGets an EventToken for the position that is immediately before FirstToken. (Inherited from Chain.)
Public propertyCanGetCountGets a value that determines whether the chain supports Count. (Overrides Chain.CanGetCount.)
Public propertyCanGetLastTokenGets a value that determines whether the chain supports LastToken. (Overrides Chain.CanGetLastToken.)
Public propertyCanGetPreviousTokenGets a value that determines whether the chain supports GetPreviousToken. (Overrides Chain.CanGetPreviousToken.)
Public propertyCountGets the number of events in the chain. (Overrides Chain.Count.)
Public propertyFirstTokenGets an EventToken for the first event in the chain. (Overrides Chain.FirstToken.)
Public propertyFirstValidTokenGets an EventToken for the first valid event in the chain. (Overrides Chain.FirstValidToken.)
Public propertyIsEmptyGets a value that indicates whether the chain is empty. (Overrides Chain.IsEmpty.)
Public propertyLastTokenGets an EventToken for the last event in the chain. (Overrides Chain.LastToken.)

Public methodDispose() (Inherited from Chain.)
Protected methodDispose(Boolean)Releases the resources that are used by this chain. (Overrides Chain.Dispose(Boolean).)
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 methodGetEventGets an IntelliTraceEvent for the specified EventToken. (Overrides Chain.GetEvent(EventToken).)
Public methodGetEventsGets multiple IntelliTraceEvents from a start EventToken up to but excluding an end EventToken. (Overrides Chain.GetEvents(EventToken, EventToken).)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetNextTokenGets the EventToken for the next event after the given EventToken. (Overrides Chain.GetNextToken(EventToken).)
Public methodGetPreviousTokenGets the EventToken for the previous event before the given EventToken. (Overrides Chain.GetPreviousToken(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. (Inherited from Chain.)
Public methodIsValidTokenDetermines whether the given EventToken is valid for this chain. (Overrides Chain.IsValidToken(EventToken).)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRefreshLoads all recorded events for this chain and applies the filtering that is specified in IsValidEventType. (Overrides DerivedChain.Refresh().)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

FilteredListChain uses a ListChain and loads all chain data into memory. When deriving from FilteredListChain, implement IsValidEventType to provide the filtering that is desired.

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

Community Additions