共用方式為


SPDiagnosticsProviderCollection Class

Represents a collection of diagnostics providers whose job is to collect diagnostics information and outputs them to Logging Database.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPPersistedObjectCollection<SPDiagnosticsProvider>
    Microsoft.SharePoint.Administration.SPPersistedChildCollection<SPDiagnosticsProvider>
      Microsoft.SharePoint.Diagnostics.SPDiagnosticsProviderCollection

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPDiagnosticsProviderCollection _
    Inherits SPPersistedChildCollection(Of SPDiagnosticsProvider)
'Usage
Dim instance As SPDiagnosticsProviderCollection
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPDiagnosticsProviderCollection : SPPersistedChildCollection<SPDiagnosticsProvider>

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

SPDiagnosticsProviderCollection Members

Microsoft.SharePoint.Diagnostics Namespace