共用方式為


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
)

參數

  • output
    Type: System.String

    包含會寫入至事件記錄訊息的字串。

請參閱

參照

SPLog class

SPLog members

Error overload

Microsoft.SharePoint.Upgrade namespace