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