Share via


SPCmdlet.WriteError method

Writes the details of non-terminating errors to the screen as an error message and logs the details in a log file.

Overload list

  Name Description
Public method WriteError(ErrorRecord) (Inherited from Cmdlet.)
Protected method WriteError(Exception, ErrorCategory, Object) Writes the details of non-terminating errors to the screen as an error message and logs the details in a log file.
Protected method WriteError(Exception, ErrorCategory, Object, String) Writes the details of non-terminating errors to the screen as an error message and logs the details in a log file.

Top

See also

Reference

SPCmdlet class

SPCmdlet members

Microsoft.SharePoint.PowerShell namespace