Share via


TraceEventCollection 类

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

继承层次结构

System. . :: . .Object
  Microsoft.AnalysisServices..::..TraceEventCollection

命名空间:  Microsoft.AnalysisServices
程序集:  Microsoft.AnalysisServices(在 Microsoft.AnalysisServices.dll 中)

语法

声明
<GuidAttribute("8294A436-B408-4594-A0D1-31B2C7F2904A")> _
Public NotInheritable Class TraceEventCollection _
    Implements ICollection, IEnumerable
用法
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

TraceEventCollection 类型公开以下成员。

属性

  名称 说明
公共属性 Count Gets the number of TraceEvent objects in the collection.
公共属性 Item[ ( [ ( Int32] ) ] ) Gets the TraceEvent at the specified index from the collection.
公共属性 Item[ ( [ ( TraceEventClass] ) ] ) Gets the TraceEvent that has the specified TraceEventClass value from the collection.

页首

方法

  名称 说明
公共方法 Add(TraceEvent) Adds a TraceEvent to the end of the collection.
公共方法 Add(TraceEventClass) Creates and adds a TraceEvent, with the specified TraceEventClass value, to the end of the collection.
公共方法 Clear Removes all elements from the collection.
公共方法 Contains(TraceEvent) Indicates whether the collection contains a specified TraceEvent.
公共方法 Contains(TraceEventClass) Indicates whether the collection contains a TraceEvent that has the specified TraceEventClass value.
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 Find Gets the TraceEvent that has the specified TraceEventClass value from the collection.
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 Remove(TraceEvent) Removes the specified TraceEvent from the collection.
公共方法 Remove(TraceEventClass) Removes the TraceEvent that has the specified TraceEventClass value from the collection.
公共方法 ToString (从 Object 继承。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。