Partager via


CommandInvocationIntrinsics.GetCmdletByTypeName(String) Method

Definition

Get the cmdlet info using the name of the cmdlet's implementing type. This bypasses session state and retrieves the command directly. Note that the help file and snapin/module info will both be null on returned object.

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

Parameters

cmdletTypeName
String

The type name of the class implementing this cmdlet.

Returns

CmdletInfo for the cmdlet if found, null otherwise.

Applies to