Export (0) Print
Expand All

InvocationInfo.MyCommand Property

Gets information about the command.

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

Dim instance As InvocationInfo
Dim value As CommandInfo

value = instance.MyCommand

public CommandInfo MyCommand { get; }
/** @property */
public CommandInfo get_MyCommand ()

public function get MyCommand () : CommandInfo

Property Value

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
© 2014 Microsoft