共用方式為


SPDiagnosticsProvider Class

Represents a base class for diagnostic providers that collect diagnostic information and output that information to a logging database.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPJobDefinition
        Microsoft.SharePoint.Diagnostics.SPDiagnosticsProviderJobDefinition
          Microsoft.SharePoint.Diagnostics.SPDiagnosticsProvider
            Microsoft.SharePoint.Diagnostics.SPDiagnosticsEventLogProvider
            Microsoft.SharePoint.Diagnostics.SPDiagnosticsPerformanceCounterProvider
            Microsoft.SharePoint.Diagnostics.SPDiagnosticsSqlProvider
            Microsoft.SharePoint.Diagnostics.SPDiagnosticsULSProvider

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

Syntax

'Declaration
<GuidAttribute("3E322B8A-078C-4df1-9196-002C4D4CAA46")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class SPDiagnosticsProvider _
    Inherits SPDiagnosticsProviderJobDefinition _
    Implements ILoggingProvider
'Usage
Dim instance As SPDiagnosticsProvider
[GuidAttribute("3E322B8A-078C-4df1-9196-002C4D4CAA46")]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class SPDiagnosticsProvider : SPDiagnosticsProviderJobDefinition, 
    ILoggingProvider

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

SPDiagnosticsProvider Members

Microsoft.SharePoint.Diagnostics Namespace