Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

CmdletMetadataAttribute Class

Definition

Namespace:
System.Management.Automation.Internal
Assembly:
System.Management.Automation.dll
Package:
Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0
Package:
System.Management.Automation v7.4.15
Package:
System.Management.Automation v7.5.6
Package:
System.Management.Automation v7.6.1

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Serves as the base class for Metadata attributes.

public ref class CmdletMetadataAttribute abstract : Attribute
[System.AttributeUsage(System.AttributeTargets.All)]
public abstract class CmdletMetadataAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.All)>]
type CmdletMetadataAttribute = class
 inherit Attribute
Public MustInherit Class CmdletMetadataAttribute
Inherits Attribute
Inheritance
CmdletMetadataAttribute
Derived
Attributes

Remarks

PSSnapins may not create custom attributes derived directly from CmdletMetadataAttribute, since it has no public constructor. Only the public subclasses ValidateArgumentsAttribute and ArgumentTransformationAttribute are available.

Applies to

See also