IScriptPosition Interface

Definition

Represents a single point in a script. The script may come from a file or interactive input.

C++
public interface class IScriptPosition
Derived
Attributes

Properties

ColumnNumber

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

File

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

Line

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

LineNumber

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

Offset

The offset from the beginning of the script.

Methods

GetFullScript()

The complete script that this position is included in.

Applies to

Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0