VerbArgumentCompleter.CompleteArgument Method
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.
Returns completion results for verb parameter.
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.PowerShell.Commands.VerbArgumentCompleter+<CompleteArgument>d__0))]
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);
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(Microsoft.PowerShell.Commands.VerbArgumentCompleter+<CompleteArgument>d__0))>]
abstract member CompleteArgument : string * string * string * System.Management.Automation.Language.CommandAst * System.Collections.IDictionary -> seq<System.Management.Automation.CompletionResult>
override this.CompleteArgument : string * string * string * System.Management.Automation.Language.CommandAst * System.Collections.IDictionary -> seq<System.Management.Automation.CompletionResult>
abstract member CompleteArgument : string * string * string * System.Management.Automation.Language.CommandAst * System.Collections.IDictionary -> seq<System.Management.Automation.CompletionResult>
override this.CompleteArgument : string * string * string * System.Management.Automation.Language.CommandAst * System.Collections.IDictionary -> seq<System.Management.Automation.CompletionResult>
Public Iterator Overridable NotOverridable Function CompleteArgument (commandName As String, parameterName As String, wordToComplete As String, commandAst As CommandAst, fakeBoundParameters As IDictionary) As IEnumerable(Of CompletionResult)
Public Function CompleteArgument (commandName As String, parameterName As String, wordToComplete As String, commandAst As CommandAst, fakeBoundParameters As IDictionary) As IEnumerable(Of CompletionResult)
Parameters
- commandName
- String
The command name.
- parameterName
- String
The parameter name.
- wordToComplete
- String
The word to complete.
- commandAst
- CommandAst
The command AST.
- fakeBoundParameters
- IDictionary
The fake bound parameters.
Returns
List of Completion Results.
Implements
- Attributes