Share via


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)
Available in Sandboxed Solutions: No

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