PSCmdlet.MyInvocation Property

Gets invocation information about the cmdlet.

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

Dim instance As PSCmdlet
Dim value As InvocationInfo

value = instance.MyInvocation

public InvocationInfo MyInvocation { get; }
/** @property */
public InvocationInfo get_MyInvocation ()

public function get MyInvocation () : InvocationInfo

Property Value

An InvocationInfo object that describes the cmdlet.

This method is used by scripts to find out information about the cmdlet.

For more information about cmdlets, see Windows PowerShell Cmdlets.

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