ScriptPosition ScriptPosition ScriptPosition Constructors

Definition

Overloads

ScriptPosition(String, Int32, Int32, String) ScriptPosition(String, Int32, Int32, String) ScriptPosition(String, Int32, Int32, String)

Creates a new script position, which represents a point in a script

ScriptPosition(String, Int32, Int32, String, String) ScriptPosition(String, Int32, Int32, String, String) ScriptPosition(String, Int32, Int32, String, String)

Creates a new script position, which represents a point in a script

ScriptPosition(String, Int32, Int32, String) ScriptPosition(String, Int32, Int32, String) ScriptPosition(String, Int32, Int32, String)

Creates a new script position, which represents a point in a script

public ScriptPosition (string scriptName, int scriptLineNumber, int offsetInLine, string line);
new System.Management.Automation.Language.ScriptPosition : string * int * int * string -> System.Management.Automation.Language.ScriptPosition
Public Sub New (scriptName As String, scriptLineNumber As Integer, offsetInLine As Integer, line As String)
Parameters
scriptName
String String String

The name of the file, or if the script did not come from a file, then null.

scriptLineNumber
Int32 Int32 Int32

The line number of the position, with the value 1 being the first line.

offsetInLine
Int32 Int32 Int32

The column number of the position, with the value 1 being the first column.

line
String String String

The complete text of the line that this position is included on.

ScriptPosition(String, Int32, Int32, String, String) ScriptPosition(String, Int32, Int32, String, String) ScriptPosition(String, Int32, Int32, String, String)

Creates a new script position, which represents a point in a script

public ScriptPosition (string scriptName, int scriptLineNumber, int offsetInLine, string line, string fullScript);
new System.Management.Automation.Language.ScriptPosition : string * int * int * string * string -> System.Management.Automation.Language.ScriptPosition
Public Sub New (scriptName As String, scriptLineNumber As Integer, offsetInLine As Integer, line As String, fullScript As String)
Parameters
scriptName
String String String

The name of the file, or if the script did not come from a file, then null.

scriptLineNumber
Int32 Int32 Int32

The line number of the position, with the value 1 being the first line.

offsetInLine
Int32 Int32 Int32

The column number of the position, with the value 1 being the first column.

line
String String String

The complete text of the line that this position is included on.

fullScript
String String String

The complete script text. Optional, can be null.

Applies to