共用方式為


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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。