Freigeben über


ArgumentCompletionsAttribute Class

Definition

This attribute is used to specify an argument completions for a parameter of a cmdlet or function based on string array. [Parameter()] [ArgumentCompletions("Option1","Option2","Option3")] public string Noun { get; set; }

public ref class ArgumentCompletionsAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public class ArgumentCompletionsAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
type ArgumentCompletionsAttribute = class
    inherit Attribute
Public Class ArgumentCompletionsAttribute
Inherits Attribute
Inheritance
ArgumentCompletionsAttribute
Attributes

Constructors

ArgumentCompletionsAttribute(String[])

Initializes a new instance of the ArgumentCompletionsAttribute class.

Methods

CompleteArgument(String, String, String, CommandAst, IDictionary)

The function returns completions for arguments.

Applies to