다음을 통해 공유


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; }
public ref class ArgumentCompleterAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public class ArgumentCompleterAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
type ArgumentCompleterAttribute = class
    inherit Attribute
Public Class ArgumentCompleterAttribute
Inherits 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

ScriptBlock
Type

Applies to