Share via


ArgumentCompletionsAttribute.CompleteArgument Method

Definition

The function returns completions for arguments.

public:
 System::Collections::Generic::IEnumerable<System::Management::Automation::CompletionResult ^> ^ CompleteArgument(System::String ^ commandName, System::String ^ parameterName, System::String ^ wordToComplete, System::Management::Automation::Language::CommandAst ^ commandAst, System::Collections::IDictionary ^ fakeBoundParameters);
public System.Collections.Generic.IEnumerable<System.Management.Automation.CompletionResult> CompleteArgument (string commandName, string parameterName, string wordToComplete, System.Management.Automation.Language.CommandAst commandAst, System.Collections.IDictionary fakeBoundParameters);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(System.Management.Automation.ArgumentCompletionsAttribute+<CompleteArgument>d__2))]
public System.Collections.Generic.IEnumerable<System.Management.Automation.CompletionResult> CompleteArgument (string commandName, string parameterName, string wordToComplete, System.Management.Automation.Language.CommandAst commandAst, System.Collections.IDictionary fakeBoundParameters);
member this.CompleteArgument : string * string * string * System.Management.Automation.Language.CommandAst * System.Collections.IDictionary -> seq<System.Management.Automation.CompletionResult>
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(System.Management.Automation.ArgumentCompletionsAttribute+<CompleteArgument>d__2))>]
member this.CompleteArgument : string * string * string * System.Management.Automation.Language.CommandAst * System.Collections.IDictionary -> seq<System.Management.Automation.CompletionResult>
Public Function CompleteArgument (commandName As String, parameterName As String, wordToComplete As String, commandAst As CommandAst, fakeBoundParameters As IDictionary) As IEnumerable(Of CompletionResult)
Public Iterator Function CompleteArgument (commandName As String, parameterName As String, wordToComplete As String, commandAst As CommandAst, fakeBoundParameters As IDictionary) As IEnumerable(Of CompletionResult)

Parameters

commandName
String
parameterName
String
wordToComplete
String
commandAst
CommandAst
fakeBoundParameters
IDictionary

Returns

Attributes

Applies to