Share via


SPLog.Warning method

Writes the specified warning or exception to the upgrade event log.

Overload list

  Name Description
Public method Warning(String) Writes the specified string 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.
Public method Warning(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.
Public method Warning(String, []) 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.
Public method Warning(String, Exception, []) 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.

Top

See also

Reference

SPLog class

SPLog members

Microsoft.SharePoint.Upgrade namespace