ArgumentCompleterAttribute Class

Definition

This attribute is used to specify an argument completer for a parameter to a cmdlet or function.

[Parameter()]
[ArgumentCompleter(typeof(NounArgumentCompleter))]
public string Noun { get; set; }
C++
public ref class ArgumentCompleterAttribute : Attribute
Inheritance
ArgumentCompleterAttribute
Derived
Attributes

Constructors

ArgumentCompleterAttribute()

Initializes a new instance of the ArgumentCompleterAttribute class. This constructor is used by derived attributes implementing IArgumentCompleterFactory.

ArgumentCompleterAttribute(ScriptBlock)

This constructor is used primarily via PowerShell scripts.

ArgumentCompleterAttribute(Type)

Properties

Applies to

Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0