This topic has not yet been rated - Rate this topic

CmdletAttribute Constructor

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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)
'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

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)