ClearHistoryCommand Constructor

Creates a new ClearHistoryCommand object. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.This constructor is introduced by Windows PowerShell 2.0.

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

Dim instance As New ClearHistoryCommand

public ClearHistoryCommand ()
public ClearHistoryCommand ()
public function ClearHistoryCommand ()

This cmdlet deletes commands from the command history of the current session. For more information about this cmdlet, see Clear-History in the Microsoft TechNet Library.

For Help at the command line, type:

get-help clear-history


Target Platforms