TraceEventCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a collection of TraceEvent objects. This class cannot be inherited.
[System.Runtime.InteropServices.Guid("8294A436-B408-4594-A0D1-31B2C7F2904A")]
public sealed class TraceEventCollection : System.Collections.ICollection
[<System.Runtime.InteropServices.Guid("8294A436-B408-4594-A0D1-31B2C7F2904A")>]
type TraceEventCollection = class
interface ICollection
interface IEnumerable
Public NotInheritable Class TraceEventCollection
Implements ICollection
- Inheritance
-
TraceEventCollection
- Attributes
- Implements
Properties
Count |
Gets the number of elements contained in the collection. |
Item[Int32] |
Gets the TraceEvent element at the specified index. |
Item[TraceEventClass] |
Gets the TraceEvent with the specified EventID. |
Methods
Add(TraceEvent) |
Adds the specified TraceEvent to the end of the collection. |
Add(TraceEventClass) |
Creates a new TraceEvent object using the specified EventId, adds it to the end of the collection and returns the new TraceEvent created. |
Clear() |
Removes all items from the collection. |
Contains(TraceEvent) |
Determines whether the specified TraceEvent exists in the collection. |
Contains(TraceEventClass) |
Determines whether a TraceEvent with the specified EventID exists in the collection. |
Find(TraceEventClass) |
, Returns the TraceEvent with the specified EventId. |
Remove(TraceEvent) |
Removes the specified TraceEvent from this collection. |
Remove(TraceEventClass) |
Removes the TraceEvent with the specified EventID from this collection. |
Explicit Interface Implementations
ICollection.CopyTo(Array, Int32) | |
ICollection.IsSynchronized | |
ICollection.SyncRoot | |
IEnumerable.GetEnumerator() |