TraceEventCollection Class

Contains a collection of TraceEvent objects. This class cannot be inherited.

Inheritance Hierarchy

System.Object
  Microsoft.AnalysisServices.TraceEventCollection

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

'Declaration
<GuidAttribute("8294A436-B408-4594-A0D1-31B2C7F2904A")> _
Public NotInheritable Class TraceEventCollection _
    Implements ICollection, IEnumerable
'Usage
Dim instance As TraceEventCollection
[GuidAttribute("8294A436-B408-4594-A0D1-31B2C7F2904A")]
public sealed class TraceEventCollection : ICollection, 
    IEnumerable
[GuidAttribute(L"8294A436-B408-4594-A0D1-31B2C7F2904A")]
public ref class TraceEventCollection sealed : ICollection, 
    IEnumerable
[<SealedAttribute>]
[<GuidAttribute("8294A436-B408-4594-A0D1-31B2C7F2904A")>]
type TraceEventCollection =  
    class 
        interface ICollection 
        interface IEnumerable 
    end
public final class TraceEventCollection implements ICollection, IEnumerable

The TraceEventCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of TraceEvent objects in the collection.
Public property Item[Int32] Gets the TraceEvent at the specified index from the collection.
Public property Item[TraceEventClass] Gets the TraceEvent that has the specified TraceEventClass value from the collection.

Top

Methods

  Name Description
Public method Add(TraceEvent) Adds a TraceEvent to the end of the collection.
Public method Add(TraceEventClass) Creates and adds a TraceEvent, with the specified TraceEventClass value, to the end of the collection.
Public method Clear Removes all elements from the collection.
Public method Contains(TraceEvent) Indicates whether the collection contains a specified TraceEvent.
Public method Contains(TraceEventClass) Indicates whether the collection contains a TraceEvent that has the specified TraceEventClass value.
Public method Equals (Inherited from Object.)
Public method Find Gets the TraceEvent that has the specified TraceEventClass value from the collection.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Remove(TraceEvent) Removes the specified TraceEvent from the collection.
Public method Remove(TraceEventClass) Removes the TraceEvent that has the specified TraceEventClass value from the collection.
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo Copies the elements of the collection to an array, starting at a particular array index.
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implemetationPrivate property ICollection.IsSynchronized Gets a value that indicates whether access to the TraceEventCollection is synchronized.
Explicit interface implemetationPrivate property ICollection.SyncRoot Gets an object that can be used to synchronize access to the TraceEventCollection.

Top

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.AnalysisServices Namespace