SPLog.WriteLog method (String, Exception, LogLevel)
寫入升級根據指定的記錄層級的事件記錄檔中指定的郵件和例外狀況。
Namespace: Microsoft.SharePoint.Upgrade
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub WriteLog ( _
output As String, _
exception As Exception, _
level As LogLevel _
)
'用途
Dim instance As SPLog
Dim output As String
Dim exception As Exception
Dim level As LogLevel
instance.WriteLog(output, exception, level)
public void WriteLog(
string output,
Exception exception,
LogLevel level
)
參數
output
Type: System.String字串,其中包含將會寫入至事件記錄檔的警告。
exception
Type: System.ExceptionSystem.Exception物件,代表其堆疊追蹤記錄的例外狀況。
level
Type: Microsoft.SharePoint.Upgrade.LogLevel指定的記錄層級LogLevel值。