Aracılığıyla paylaş


CmdletInfo(String, Type) Constructor

Definition

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.

Applies to