ParseError(IScriptExtent, String, String) Constructor

Definition

Creates a new parse error.

public:
 ParseError(System::Management::Automation::Language::IScriptExtent ^ extent, System::String ^ errorId, System::String ^ message);
public ParseError (System.Management.Automation.Language.IScriptExtent extent, string errorId, string message);
new System.Management.Automation.Language.ParseError : System.Management.Automation.Language.IScriptExtent * string * string -> System.Management.Automation.Language.ParseError
Public Sub New (extent As IScriptExtent, errorId As String, message As String)

Parameters

extent
IScriptExtent

The IScriptExtent that represents the location of the error.

errorId
String

The error ID to associate with the error.

message
String

The message of the error.

Applies to