InvocationInfo.MyCommand Property


Updated: April 27, 2016

Applies To: Windows PowerShell

Gets information about the command.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public CommandInfo MyCommand { get; }

Property Value

Type: System.Management.Automation.CommandInfo

A command information object that describes a cmdlet, function, script, or another type of command. All command information classes derive from the CommandInfo class.

For example, this property returns a CmdletInfo object for cmdlets and a FunctionInfo object for functions.

Return to top

Community Additions