共用方式為


SPCmdlet.ThrowTerminatingError Method

Include Protected Members
Include Inherited Members

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

Overload List

  Name Description
Public method ThrowTerminatingError(ErrorRecord) (Inherited from Cmdlet.)
Protected method ThrowTerminatingError(Exception, ErrorCategory, Object) Writes the details of a terminating error to the screen as an error message and logs the details in a log file.
Protected method ThrowTerminatingError(Exception, ErrorCategory, Object, String) Writes the details of a terminating error 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