Partager via


PSConsoleReadLine.AddToHistory(String) Method

Definition

Add a command to the history - typically used to restore history from a previous session.

public:
 static void AddToHistory(System::String ^ command);
public:
 static void AddToHistory(Platform::String ^ command);
 static void AddToHistory(std::wstring const & command);
public static void AddToHistory (string command);
static member AddToHistory : string -> unit
Public Shared Sub AddToHistory (command As String)

Parameters

command
String

Applies to