ScriptExtent Class

Definition

A script extent used to customize the display of error location information.

C++
public ref class ScriptExtent sealed : System::Management::Automation::Language::IScriptExtent
Inheritance
ScriptExtent
Implements

Constructors

ScriptExtent(ScriptPosition, ScriptPosition)

Creates a new ScriptExtent class.

Properties

EndColumnNumber

The column number at the end of the extent, with the value 1 being the first column.

EndLineNumber

The line number at the end of the extent, with the value 1 being the first line.

EndOffset

The end offset (always returns 0)

EndScriptPosition

The end position of the extent. This position is actually 1 character past the end of the extent.

File

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

StartColumnNumber

The column number at the beginning of the extent, with the value 1 being the first column.

StartLineNumber

The line number at the beginning of the extent, with the value 1 being the first line.

StartOffset

The start offset (always returns 0)

StartScriptPosition

The starting position of the extent.

Text

The script text that the extent includes.

Applies to

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