SPLog.WriteLog method (String, Exception, LogLevel, Object[])
寫入升級根據指定的記錄層級的事件記錄檔中指定的郵件。
Namespace: Microsoft.SharePoint.Upgrade
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub WriteLog ( _
format As String, _
exception As Exception, _
level As LogLevel, _
ParamArray args As Object() _
)
'用途
Dim instance As SPLog
Dim format As String
Dim exception As Exception
Dim level As LogLevel
Dim args As Object()
instance.WriteLog(format, exception, level, _
args)
public void WriteLog(
string format,
Exception exception,
LogLevel level,
params Object[] args
)
參數
format
Type: System.String格式字串,提供格式資訊。
exception
Type: System.ExceptionSystem.Exception物件,代表其堆疊追蹤記錄的例外狀況。
level
Type: Microsoft.SharePoint.Upgrade.LogLevel指定的記錄層級LogLevel值。
args
Type: []Object陣列,其中包含要格式化的零或多個物件。