SPLog.Error method (SPUpgradeSession, String)
Writes the specified error message to the upgrade event log specified by the user. This call will cause the upgrade session that contains the SPLog to increase its error count by one. An upgrade session that contains one or more errors is considered to have failed.
Namespace: Microsoft.SharePoint.Upgrade
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub Error ( _
session As SPUpgradeSession, _
output As String _
)
'Usage
Dim instance As SPLog
Dim session As SPUpgradeSession
Dim output As String
instance.Error(session, output)
public void Error(
SPUpgradeSession session,
string output
)
Parameters
session
Type: Microsoft.SharePoint.Upgrade.SPUpgradeSessionAn SPUpgradeSession object specified by the user. This can also be a non-active upgrade-session.
output
Type: System.StringA string containing the message that will be written to the event log.