SPDiagnosticsProviderCollection 成员

代表的工作就是收集诊断信息并将其输出到日志记录数据库的诊断提供程序的集合。

SPDiagnosticsProviderCollection 类型公开以下成员。

构造函数

  名称 说明
公共方法 SPDiagnosticsProviderCollection SPDiagnosticsProviderCollectionSPTimerService对象类的新实例进行初始化。

页首

属性

  名称 说明
公共属性 Count 获取集合中对象的数目。 (从 SPPersistedObjectCollection<T> 继承。)
公共属性 IsEmpty 获取一个布尔值,该值指示集合中是否包含任何对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共属性 Item[Guid] 获取基于指定的 GUID 集合中的持久的对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共属性 Item[String] 获取基于指定的名称在集合中的持久的对象。 (从 SPPersistedObjectCollection<T> 继承。)
受保护的属性 Parent 获取声明此集合的父对象。 (从 SPPersistedObjectCollection<T> 继承。)

页首

方法

  名称 说明
公共方法 Add 将对象添加到集合中。 (从 SPPersistedChildCollection<T> 继承。)
公共方法 Ensure 将对象添加到集合,而且,如果该对象已经存在,与现有的对象的数据重新初始化它。 (从 SPPersistedChildCollection<T> 继承。)
公共方法 Equals (从 Object 继承。)
受保护的方法 Finalize (从 Object 继承。)
公共方法 GetEnumerator 获取一个可用于循环访问集合的枚举器。 (从 SPPersistedObjectCollection<T> 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
公共方法 GetValue<U>() 从具有指定的类型和默认的名称的集合中检索对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共方法 GetValue<U>(Guid) 从具有指定的 ID 和类型的集合中检索对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共方法 GetValue<U>(String) 从具有指定的名称和类型的集合中检索对象。 (从 SPPersistedObjectCollection<T> 继承。)
受保护的方法 MemberwiseClone (从 Object 继承。)
公共方法 Remove 删除集合中的对象。 (从 SPPersistedChildCollection<T> 继承。)
公共方法 ToString (从 Object 继承。)

页首

显式 接口 实现

  名称 说明
显式接口实现私有方法 IEnumerable.GetEnumerator 返回可枚举此列表中的所有项目。 (从 SPPersistedObjectCollection<T> 继承。)

页首

另请参阅

引用

SPDiagnosticsProviderCollection 类

Microsoft.SharePoint.Diagnostics 命名空间