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

Definition

Cancel the current input, leaving the input on the screen, but returns back to the host so the prompt is evaluated again.

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

Parameters

arg
Object

Applies to