次の方法で共有


PSConsoleReadLine.HistoryItem Class

Definition

History details including the command line, source, and start and approximate execution time.

public class PSConsoleReadLine.HistoryItem
type PSConsoleReadLine.HistoryItem = class
Public Class PSConsoleReadLine.HistoryItem
Inheritance
PSConsoleReadLine.HistoryItem

Constructors

PSConsoleReadLine.HistoryItem()

Properties

ApproximateElapsedTime

The approximate elapsed time (includes time to invoke Prompt). The value can be 0 ticks if if accessed before PSReadLine gets a chance to set it.

CommandLine

The command line, or if multiple lines, the lines joined with a newline.

FromHistoryFile

True if the command was read in from the history file at startup.

FromOtherSession

True if the command was from another running session (as opposed to read from the history file at startup.)

StartTime

The time at which the command was added to history in UTC.

Applies to