Condividi tramite


InvocationInfo.ScriptLineNumber Property

Definition

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.

Applies to