CmdletBindingAttribute CmdletBindingAttribute CmdletBindingAttribute Class

Definition

Identifies PowerShell script code as behaving like a cmdlet and hence uses cmdlet parameter binding instead of script parameter binding.

[System.AttributeUsage(System.AttributeTargets.Class)]
public class CmdletBindingAttribute : System.Management.Automation.CmdletCommonMetadataAttribute
type CmdletBindingAttribute = class
    inherit CmdletCommonMetadataAttribute
Public Class CmdletBindingAttribute
Inherits CmdletCommonMetadataAttribute
Inheritance
Attributes

Constructors

CmdletBindingAttribute() CmdletBindingAttribute() CmdletBindingAttribute()

Properties

ConfirmImpact ConfirmImpact ConfirmImpact Inherited from CmdletCommonMetadataAttribute
DefaultParameterSetName DefaultParameterSetName DefaultParameterSetName Inherited from CmdletCommonMetadataAttribute
HelpUri HelpUri HelpUri Inherited from CmdletCommonMetadataAttribute
PositionalBinding PositionalBinding PositionalBinding

When true, the script will auto-generate appropriate parameter metadata to support positional parameters if the script hasn't already specified multiple parameter sets or specified positions explicitly via the ParameterAttribute.

RemotingCapability RemotingCapability RemotingCapability Inherited from CmdletCommonMetadataAttribute
SupportsPaging SupportsPaging SupportsPaging Inherited from CmdletCommonMetadataAttribute
SupportsShouldProcess SupportsShouldProcess SupportsShouldProcess Inherited from CmdletCommonMetadataAttribute
SupportsTransactions SupportsTransactions SupportsTransactions Inherited from CmdletCommonMetadataAttribute

Applies to