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 继承。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
ICollection. . :: . .CopyTo | ||
IEnumerable. . :: . .GetEnumerator | ||
ICollection. . :: . .IsSynchronized | ||
ICollection. . :: . .SyncRoot |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。