Share via


ScriptPosition Constructors

Definition

Overloads

ScriptPosition(String, Int32, Int32, String)

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

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

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

ScriptPosition(String, Int32, Int32, String)

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

public:
 ScriptPosition(System::String ^ scriptName, int scriptLineNumber, int offsetInLine, System::String ^ line);
public:
 ScriptPosition(Platform::String ^ scriptName, int scriptLineNumber, int offsetInLine, Platform::String ^ line);
 ScriptPosition(std::wstring const & scriptName, int scriptLineNumber, int offsetInLine, std::wstring const & line);
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

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

scriptLineNumber
Int32

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

offsetInLine
Int32

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

line
String

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

Applies to

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

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

public:
 ScriptPosition(System::String ^ scriptName, int scriptLineNumber, int offsetInLine, System::String ^ line, System::String ^ fullScript);
public:
 ScriptPosition(Platform::String ^ scriptName, int scriptLineNumber, int offsetInLine, Platform::String ^ line, Platform::String ^ fullScript);
 ScriptPosition(std::wstring const & scriptName, int scriptLineNumber, int offsetInLine, std::wstring const & line, std::wstring const & fullScript);
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

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

scriptLineNumber
Int32

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

offsetInLine
Int32

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

line
String

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

fullScript
String

The complete script text. Optional, can be null.

Applies to