SPLog.Warning method (String, Exception)

Writes the specified string and exception to the upgrade log as a warning. This call will cause the upgrade session that contains the SPLog to increase its warning count by one. An upgrade session that contains one or more warnings is considered to be successful.

Namespace:  Microsoft.SharePoint.Upgrade
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub Warning ( _
    output As String, _
    exception As Exception _
)
'Usage
Dim instance As SPLog
Dim output As String
Dim exception As Exception

instance.Warning(output, exception)
public void Warning(
    string output,
    Exception exception
)

Parameters

  • output
    Type: System.String

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

  • exception
    Type: System.Exception

    A System.Exception object that represents the exception whose stack trace is logged.

See also

Reference

SPLog class

SPLog members

Warning overload

Microsoft.SharePoint.Upgrade namespace