共用方式為


SPDiagnosticsProvider class

代表基底類別的診斷提供者,收集診斷資訊並輸出至記錄資料庫的資訊。

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.SPDiagnosticsMetricsProvider
            Microsoft.SharePoint.Diagnostics.SPDiagnosticsPerformanceCounterProvider
            Microsoft.SharePoint.Diagnostics.SPDiagnosticsSqlProvider
            Microsoft.SharePoint.Diagnostics.SPDiagnosticsULSProvider

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

Syntax

'宣告
<GuidAttribute("3E322B8A-078C-4df1-9196-002C4D4CAA46")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class SPDiagnosticsProvider _
    Inherits SPDiagnosticsProviderJobDefinition _
    Implements ILoggingProvider
'用途
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.

請參閱

參照

SPDiagnosticsProvider members

Microsoft.SharePoint.Diagnostics namespace