SPLog.ErrorTag method (UInt32, String, Exception, Object[])
速記**[WriteLog(stringmessage,Exceptionexception,LogLevellevel)]的方式。使用[LogLevel.Error]**。
Namespace: Microsoft.SharePoint.Upgrade
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub ErrorTag ( _
tagID As UInteger, _
format As String, _
exception As Exception, _
ParamArray args As Object() _
)
'用途
Dim instance As SPLog
Dim tagID As UInteger
Dim format As String
Dim exception As Exception
Dim args As Object()
instance.ErrorTag(tagID, format, exception, _
args)
public void ErrorTag(
uint tagID,
string format,
Exception exception,
params Object[] args
)
參數
tagID
Type: System.UInt32郵件標籤。
- format
Type: System.String
exception
Type: System.Exception記錄其堆疊追蹤的例外狀況。
- args
Type: []