SPDiagnosticsCollection<T> class

Represents a collection of SPDiagnosticsItems, which contain collections of SPDiagnosticsCategory or SPDiagnosticsArea objects.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPDiagnosticsCollection<T>

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPDiagnosticsCollection(Of T As SPDiagnosticsItem) _
    Implements IEnumerable(Of T), IEnumerable
'Usage
Dim instance As SPDiagnosticsCollection(Of T)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPDiagnosticsCollection<T> : IEnumerable<T>, 
    IEnumerable
where T : SPDiagnosticsItem

Type parameters

  • T

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SPDiagnosticsCollection<T> members

Microsoft.SharePoint.Administration namespace