共用方式為


SPCriticalTraceCounter.AddDataToScope method

將指定的關鍵追蹤資訊儲存在稍後報告的內容。

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

Syntax

'宣告
Public Shared Sub AddDataToScope ( _
    tagID As UInteger, _
    category As String, _
    traceLevel As Integer, _
    message As String _
)
'用途
Dim tagID As UInteger
Dim category As String
Dim traceLevel As Integer
Dim message As StringSPCriticalTraceCounter.AddDataToScope(tagID, category, _
    traceLevel, message)
public static void AddDataToScope(
    uint tagID,
    string category,
    int traceLevel,
    string message
)

參數

  • category
    Type: System.String

    System.String的表示追蹤分類。

  • traceLevel
    Type: System.Int32

    追蹤層級事件的System.Int32 。

備註

如果標記識別項符合其中一個**[SPDeveloperDashboardSettings.AdditionalEventsToTrack]**中的值這個執行個體將會被視為關鍵的追蹤,不論詳細等級。

請參閱

參照

SPCriticalTraceCounter class

SPCriticalTraceCounter members

Microsoft.SharePoint.Utilities namespace