InvocationInfo Properties
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
System.Management.Automation Namespace
| Name | Description | |
|---|---|---|
|
MyCommand | Gets information about the command. |
|
BoundParameters | Gets a dictionary of the arguments that were bound to parameters of the command. This property is introduced in Windows PowerShell 2.0. |
|
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. |
|
ScriptLineNumber | Gets the line number of the script that contains the command. |
|
OffsetInLine | Gets the offset (in characters) of the command location in the line. |
|
HistoryId | Gets the history identifier for the command that was invoked. This property is introduced in Windows PowerShell 2.0. |
|
ScriptName | Gets the name of the script containing the command. |
|
Line | Gets the text of the line used to invoke the command. |
|
PositionMessage | Gets a formatted message that describes where the command appeared in the pipeline. |
|
PSScriptRoot | |
|
PSCommandPath | |
|
InvocationName | Gets the name of the command that was invoked. |
|
PipelineLength | Gets the number of elements that are in the pipeline that contains the command. |
|
PipelinePosition | Gets the position of this command in the pipeline that contains the command. |
|
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. |
|
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. |
|
DisplayScriptPosition |
Reference
InvocationInfo ClassSystem.Management.Automation Namespace
Other Resources
Windows PowerShell SDKSend comments about this topic to Microsoft.