Click to Rate and Give Feedback

  Switch on low bandwidth view
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)
Dim instance As CmdletAttribute
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

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.

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
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker