SPLog.WriteLogTag method (UInt32, String, Exception, LogLevel, Object[])
速記**[WriteLog(stringmessage,LogLevellevel)]**的方式。以郵件方式會記錄郵件以及例外堆疊追蹤。
Namespace: Microsoft.SharePoint.Upgrade
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub WriteLogTag ( _
tagID As UInteger, _
format As String, _
exception As Exception, _
level As LogLevel, _
ParamArray args As Object() _
)
'用途
Dim instance As SPLog
Dim tagID As UInteger
Dim format As String
Dim exception As Exception
Dim level As LogLevel
Dim args As Object()
instance.WriteLogTag(tagID, format, exception, _
level, args)
public void WriteLogTag(
uint tagID,
string format,
Exception exception,
LogLevel level,
params Object[] args
)
參數
tagID
Type: System.UInt32郵件標籤。
format
Type: System.String格式字串的郵件
exception
Type: System.Exception將記錄其堆疊追蹤的例外狀況。
level
Type: Microsoft.SharePoint.Upgrade.LogLevel所需的記錄層級。
args
Type: []format 引數