HistoryInfo Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

This object is returned by the Get-History cmdlet and is the input object for the Add-History and Invoke-History cmdlets.

Namespace:   Microsoft.PowerShell.Commands
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  Microsoft.PowerShell.Commands.HistoryInfo

public class HistoryInfo

NameDescription
System_CAPS_pubpropertyCommandLine

Gets the command line that contains the command.

System_CAPS_pubpropertyEndExecutionTime

Gets the time of when the execution of the command ended.

System_CAPS_pubpropertyExecutionStatus

Gets the status of the pipeline, such as the pipeline is running, completed, or failed.

System_CAPS_pubpropertyId

Gets the identifier of the command.

System_CAPS_pubpropertyStartExecutionTime

Gets the time of when the execution of the command started.

NameDescription
System_CAPS_pubmethodClone()

Generates a copy of the current HistoryInfo object.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Generates a string representation of the current HistoryInfo object.(Overrides Object.ToString().)

For more information about the History cmdlets, see Add-History, Invoke-History, and Get-History in the Microsoft TechNet Library.

For Help at the command line, type:

get-help add-history

get-help get-history

get-help invoke-history

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: