共用方式為


SPLog.Error Method

Include Protected Members
Include Inherited Members

Writes the specified error message or exception to the upgrade event log. 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.

Overload List

  Name Description
Public method Error(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.
Public method Error(String, Exception) Writes the specified string and exception 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.
Public method Error(String, []) Writes the specified string and object 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.
Public method Error(SPUpgradeSession, String) Writes the specified error message to the upgrade event log specified by the user. 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.
Public method Error(String, Exception, []) Writes the specified string, exception, and a list of objects 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.

Top

See Also

Reference

SPLog Class

SPLog Members

Microsoft.SharePoint.Upgrade Namespace