Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CmdletInfo Constructor

Initializes a new instance of the CmdletInfo class.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim name As String
Dim implementingType As Type

Dim instance As New CmdletInfo(name, implementingType)

public CmdletInfo (
	string name,
	Type implementingType
)
public CmdletInfo (
	String name, 
	Type implementingType
)
public function CmdletInfo (
	name : String, 
	implementingType : Type
)

Parameters

name

The name to use for the cmdlet, which must be in the form Noun-Verb.

implementingType

The .NET class implementing this cmdlet.

This constructor directly creates a cmdlet object from a type. It allows unregistered commands to be called and the overhead of command discovery to be bypassed.


 

Target Platforms


Show:
© 2015 Microsoft