SPCriticalTraceCounter.Initialize method (UInt32, Int32)
如果啟用這個監視器,並追蹤符合這個呼叫將會啟動特定準則會啟動**[Microsoft.SharePoint.Diagnostics.ULS.SendTraceToHttpContext]**回呼可會讓這個監視器的開發人員儀表板會收集重要的追蹤。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Sub Initialize ( _
tagID As UInteger, _
traceLevel As Integer _
)
'用途
Dim tagID As UInteger
Dim traceLevel As IntegerSPCriticalTraceCounter.Initialize(tagID, traceLevel)
public static void Initialize(
uint tagID,
int traceLevel
)
參數
tagID
Type: System.UInt32uint標記識別項。
traceLevel
Type: System.Int32追蹤層級事件的System.Int32 。
備註
如果tagID符合其中一個**[SPDeveloperDashboardSettings.AdditionalEventsToTrack]**中的值這個執行個體將會被視為關鍵的追蹤,不論詳細等級。