Sdílet prostřednictvím


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

Definition

Yank the last argument from the previous history line. With an argument, the first time it is invoked, behaves just like YankNthArg. If invoked multiple times, instead it iterates through history and arg sets the direction (negative reverses the direction.)

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

Parameters

arg
Object

Applies to