Collapse the table of content
Expand the table of content
Expand Minimize
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

© 2015 Microsoft