This topic has not yet been rated - Rate this topic

InvocationInfo Properties

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

  Name Description
public property MyCommand Gets information about the command.
public property BoundParameters Gets a dictionary of the arguments that were bound to parameters of the command. This property is introduced in Windows PowerShell 2.0.
public property UnboundArguments Gets a list of the arguments that were not bound to parameters of the command. This property is introduced in Windows PowerShell 2.0.
public property ScriptLineNumber Gets the line number of the script that contains the command.
public property OffsetInLine Gets the offset (in characters) of the command location in the line.
public property HistoryId Gets the history identifier for the command that was invoked. This property is introduced in Windows PowerShell 2.0.
public property ScriptName Gets the name of the script containing the command.
public property Line Gets the text of the line used to invoke the command.
public property PositionMessage Gets a formatted message that describes where the command appeared in the pipeline.
public property PSScriptRoot  
public property PSCommandPath  
public property InvocationName Gets the name of the command that was invoked.
public property PipelineLength Gets the number of elements that are in the pipeline that contains the command.
public property PipelinePosition Gets the position of this command in the pipeline that contains the command.
public property ExpectingInput Gets a Boolean value that indicates whether the command is expecting input from the pipeline. This property is introduced in Windows PowerShell 2.0.
public property CommandOrigin Gets the dispatch origin of the command. For example, was the command dispatched internally by Windows PowerShell or by a runspace. This property is introduced in Windows PowerShell 2.0.
public property DisplayScriptPosition  

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)