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
Inheritance
Attributes

Inherited Members

System.Management.Automation.CmdletCommonMetadataAttribute

Constructors

CmdletBindingAttribute()

Properties

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.