Windows Dev Center

CmdletAttribute Constructor

Creates a new CmdletAttribute object that contains the verb and noun name pair used to invoke the cmdlet.


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

'Usage
Dim verbName As String
Dim nounName As String

Dim instance As New CmdletAttribute(verbName, nounName)

public CmdletAttribute (
	string verbName,
	string nounName
)
public CmdletAttribute (
	String verbName, 
	String nounName
)
public function CmdletAttribute (
	verbName : String, 
	nounName : String
)

Parameters

verbName

The name that describes the action performed by the cmdlet. Windows PowerShell strongly recommends that cmdlets use only the verb names specified by the action name enumerations, for example [Cmdlet(VerbsCommon.Get, "Noun")]. For more information about the standard verb names, see Cmdlet Verb Names.

nounName

A name that describes the entity on which the cmdlet performs its action.

The parameters defined by this constructor are required when specifying the attribute within the cmdlet.

For more information about the declaration syntax used to specify the CmdletAttribute attribute, see CmdletAttribute Declaration.

For more information about the guidelines for verb names, see Cmdlet Verb Names.


 

Target Platforms


Show:
© 2015 Microsoft