CommandInvocationIntrinsics.GetCmdlet(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.