InternalCommand.CommandOrigin Property

Gets the origin of the command. The command can be invoked within a runspace or it could be an external request (such as invoking the command from the command line). This property is introduced in Windows PowerShell 2.0.

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

Dim instance As InternalCommand
Dim value As CommandOrigin

value = instance.CommandOrigin

public CommandOrigin CommandOrigin { get; }
/** @property */
public CommandOrigin get_CommandOrigin ()

public function get CommandOrigin () : CommandOrigin

Property Value

Returns a CommandOrigin constant that indicates where the command was invoked.

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

© 2014 Microsoft