ClearHistoryCommand.Count Property

Gets and sets the value of the Count parameter of the Clear-History cmdlet. This property is introduced in Windows PowerShell 2.0.


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

'Usage
Dim instance As ClearHistoryCommand
Dim value As Integer

value = instance.Count

instance.Count = value

[ValidateRangeAttribute(1, 2147483647)] 
[ParameterAttribute(Mandatory=false, Position=1, HelpMessage="Clears the specified number of history entries")] 
public int Count { get; set; }
/** @property */
public int get_Count ()

/** @property */
public void set_Count (int value)

public function get Count () : int

public function set Count (value : int)

Property Value

An Int32 value that indicates the number of history entries, beginning with the oldest entry in the history, to delete.

This topic is included in this SDK for completeness only. 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


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

 

Target Platforms


Show: