Share via


SPLog.Error method (String)

Writes the specified string to the upgrade log as an error. 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 ( _
    output As String _
)
'Usage
Dim instance As SPLog
Dim output As String

instance.Error(output)
public void Error(
    string output
)

Parameters

  • output
    Type: System.String

    A string containing the message that will be written to the event log.

See also

Reference

SPLog class

SPLog members

Error overload

Microsoft.SharePoint.Upgrade namespace