CmdletAttribute Class

Identifies a .NET Framework class as a cmdlet, and defines 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 instance As CmdletAttribute

[AttributeUsageAttribute(AttributeTargets::Class)] 
public ref class CmdletAttribute sealed : public CmdletCommonMetadataAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class) */ 
public final class CmdletAttribute extends CmdletCommonMetadataAttribute
AttributeUsageAttribute(AttributeTargets.Class) 
public final class CmdletAttribute extends CmdletCommonMetadataAttribute

This attribute is used for .NET Framework classes that derive from the Cmdlet and PSCmdlet classes.

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


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft