CmdletInfo(String, Type) Constructor
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.
Directly create a cmdlet object from a type. This allows unregistered commands to be called. It also allows the overhead of command discovery to be bypassed.
public:
CmdletInfo(System::String ^ name, Type ^ implementingType);
public:
CmdletInfo(Platform::String ^ name, Platform::Type ^ implementingType);
public CmdletInfo (string name, Type implementingType);
new System.Management.Automation.CmdletInfo : string * Type -> System.Management.Automation.CmdletInfo
Public Sub New (name As String, implementingType As Type)
Parameters
- name
- String
The name to use for the cmdlet, must be in the form Noun-Verb.
- implementingType
- Type
The .NET class implementing this cmdlet.