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
)
參數
tagID
Type: System.UInt32uint標記識別項。
category
Type: System.StringSystem.String的表示追蹤分類。
traceLevel
Type: System.Int32追蹤層級事件的System.Int32 。
message
Type: System.StringSystem.String
備註
如果標記識別項符合其中一個**[SPDeveloperDashboardSettings.AdditionalEventsToTrack]**中的值這個執行個體將會被視為關鍵的追蹤,不論詳細等級。