Partager via


PSConsoleReadLine.ValidateAndAcceptLine Method

Definition

Attempt to execute the current input. If the current input is incomplete (for example there is a missing closing parenthesis, bracket, or quote, then the continuation prompt is displayed on the next line and PSReadLine waits for keys to edit the current input.

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

Parameters

arg
Object

Applies to