SPLog.Warning Method (String, Exception, Object )
Writes the specified string, exception 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, _
exception As Exception, _
ParamArray args As Object() _
)
'Usage
Dim instance As SPLog
Dim format As String
Dim exception As Exception
Dim args As Object()
instance.Warning(format, exception, args)
public void Warning(
string format,
Exception exception,
params Object[] args
)
Parameters
format
Type: System.StringA format string that supplies formatting information.
exception
Type: System.ExceptionA System.Exception object that represents the exception whose stack trace is logged.
args
Type: []An Object array containing zero or more objects to format.