InvocationInfo.ScriptLineNumber Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The line number in the executing script that contained this cmdlet.
public:
property int ScriptLineNumber { int get(); };
public:
property int ScriptLineNumber { int get(); };
public int ScriptLineNumber { get; }
member this.ScriptLineNumber : int
Public ReadOnly Property ScriptLineNumber As Integer
Property Value
The script line number or -1 if not executing in a script.