Share via


SPLog.Warning method (String, Object[])

Writes the specified string and list of objects 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 ( _
    format As String, _
    ParamArray args As Object() _
)
'Usage
Dim instance As SPLog
Dim format As String
Dim args As Object()

instance.Warning(format, args)
public void Warning(
    string format,
    params Object[] args
)

Parameters

  • format
    Type: System.String

    A format string that supplies formatting information.

  • args
    Type: []

    An Object array containing zero or more objects to format.

See also

Reference

SPLog class

SPLog members

Warning overload

Microsoft.SharePoint.Upgrade namespace