ParameterAttribute Class
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Defines the Parameter attribute that is used to identify a cmdlet or function parameter. For more information about the syntax and parameters used to declare the Parameter attribute for cmdlets, see ParameterAttribute Declaration.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple=true)] public sealed class ParameterAttribute : ParsingBaseAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple=true) */ public final class ParameterAttribute extends ParsingBaseAttribute
For more information about the syntax and parameters used to declare the Parameter attribute for functions, see about_Functions_Advanced_Parameters in the Microsoft TechNet library.
Do not declare parameters that have the following parameter names. Windows PowerShell adds these parameters to cmdlets in order to provide a consistent user experience across all cmdlets.
-
Debug
-
ErrorAction
-
ErrorVariable
-
OutBuffer
-
OutVariable
-
Verbose
-
WarningAction
-
WarningVariable
-
Confirm
-
WhatIf
-
UseTransaction
For more information about about parameter names, see Cmdlet Parameter Names.
System.Object
System.Attribute
System.Management.Automation.Internal.CmdletMetadataAttribute
System.Management.Automation.Internal.ParsingBaseAttribute
System.Management.Automation.ParameterAttribute
System.Attribute
System.Management.Automation.Internal.CmdletMetadataAttribute
System.Management.Automation.Internal.ParsingBaseAttribute
System.Management.Automation.ParameterAttribute
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 PreviewSend comments about this topic to Microsoft.