System.Management.Automatio ...


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
Syntax

Visual Basic
<AttributeUsageAttribute(AttributeTargets.Class)> _
Public NotInheritable Class CmdletAttribute
    Inherits CmdletCommonMetadataAttribute
C#
[AttributeUsageAttribute(AttributeTargets.Class)] 
public sealed class CmdletAttribute : CmdletCommonMetadataAttribute
C++
[AttributeUsageAttribute(AttributeTargets::Class)] 
public ref class CmdletAttribute sealed : public CmdletCommonMetadataAttribute
J#
/** @attribute AttributeUsageAttribute(AttributeTargets.Class) */ 
public final class CmdletAttribute extends CmdletCommonMetadataAttribute
JScript
AttributeUsageAttribute(AttributeTargets.Class) 
public final class CmdletAttribute extends CmdletCommonMetadataAttribute
Remarks

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.


Inheritance Hierarchy

System.Object
   System.Attribute
     System.Management.Automation.Internal.CmdletMetadataAttribute
       System.Management.Automation.CmdletCommonMetadataAttribute
        System.Management.Automation.CmdletAttribute
Thread Safety

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

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, Windows 7, Windows 2008 R2

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP, Windows 7, Windows 2008 R2
See Also

Page view tracker