Compartilhar via


PSConsoleReadLine.AcceptLine(Nullable<ConsoleKeyInfo>, Object) 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 AcceptLine (ConsoleKeyInfo? key = default, object arg = default);
static member AcceptLine : Nullable<ConsoleKeyInfo> * obj -> unit
Public Shared Sub AcceptLine (Optional key As Nullable(Of ConsoleKeyInfo) = Nothing, Optional arg As Object = Nothing)

Parameters

arg
Object

Applies to