CmdletAttribute Constructor (String, String)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

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)

public CmdletAttribute(
	string verbName,
	string nounName
)

Parameters

verbName
Type: System.String

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 Approved Verbs for Windows PowerShell Commands.

nounName
Type: System.String

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.

Return to top

Community Additions

ADD
Show: