SPLog.Error method (SPUpgradeSession, String)
寫入升級使用者指定的事件記錄檔中指定的錯誤訊息。這通電話將會造成升級工作階段包含SPLog以下列一項增加其錯誤的計數。包含一或多個錯誤的升級工作階段會被視為已失敗。
Namespace: Microsoft.SharePoint.Upgrade
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub Error ( _
session As SPUpgradeSession, _
output As String _
)
'用途
Dim instance As SPLog
Dim session As SPUpgradeSession
Dim output As String
instance.Error(session, output)
public void Error(
SPUpgradeSession session,
string output
)
參數
session
Type: Microsoft.SharePoint.Upgrade.SPUpgradeSession使用者指定SPUpgradeSession物件。這也可以是非作用中的升級工作階段。
output
Type: System.String包含會寫入至事件記錄訊息的字串。