Udostępnij za pośrednictwem


CommandInvocationIntrinsics.GetCmdlet(String) Method

Definition

Returns the CmdletInfo object that corresponds to the name argument.

public:
 System::Management::Automation::CmdletInfo ^ GetCmdlet(System::String ^ commandName);
public System.Management.Automation.CmdletInfo GetCmdlet (string commandName);
member this.GetCmdlet : string -> System.Management.Automation.CmdletInfo
Public Function GetCmdlet (commandName As String) As CmdletInfo

Parameters

commandName
String

The name of the cmdlet to look for.

Returns

The cmdletInfo object if found, null otherwise.

Applies to