TraceEventCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示 TraceEvent 对象集合。 此类不能被继承。
[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
- 继承
-
TraceEventCollection
- 属性
- 实现
属性
Count |
获取集合中包含的元素数。 |
Item[Int32] |
获取指定索引处的 TraceEvent 元素。 |
Item[TraceEventClass] |
获取具有指定 EventID 的 TraceEvent。 |
方法
Add(TraceEvent) |
将指定的 TraceEvent 添加到集合末尾。 |
Add(TraceEventClass) |
使用指定的 EventId 创建一个新的 TraceEvent 对象,将其添加到集合末尾,并返回新创建的 TraceEvent。 |
Clear() |
从集合中移除所有项。 |
Contains(TraceEvent) |
确定集合中是否存在指定的 TraceEvent。 |
Contains(TraceEventClass) |
确定集合中是否存在具有指定 EventID 的 TraceEvent。 |
Find(TraceEventClass) |
返回具有指定 EventId 的 TraceEvent。 |
Remove(TraceEvent) |
从此集合中删除指定的 TraceEvent。 |
Remove(TraceEventClass) |
从此集合中删除具有指定 EventID 的 TraceEvent。 |
显式接口实现
ICollection.CopyTo(Array, Int32) |
表示 TraceEvent 对象集合。 此类不能被继承。 |
ICollection.IsSynchronized |
表示 TraceEvent 对象集合。 此类不能被继承。 |
ICollection.SyncRoot |
表示 TraceEvent 对象集合。 此类不能被继承。 |
IEnumerable.GetEnumerator() |
表示 TraceEvent 对象集合。 此类不能被继承。 |