Sdílet prostřednictvím


PSConsoleReadLine.InvokePrompt(Nullable<ConsoleKeyInfo>, Object) Method

Definition

Erases the current prompt and calls the prompt function to redisplay the prompt. Useful for custom key handlers that change state, e.g. change the current directory.

public static void InvokePrompt (ConsoleKeyInfo? key = default, object arg = default);
static member InvokePrompt : Nullable<ConsoleKeyInfo> * obj -> unit
Public Shared Sub InvokePrompt (Optional key As Nullable(Of ConsoleKeyInfo) = Nothing, Optional arg As Object = Nothing)

Parameters

arg
Object

Applies to