ArgumentCompletionsAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |