GetEventLogCommand.Newest Property
Gets and sets the value of the Newest parameter of the Get-EventLog cmdlet.
Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)
Usage
'Usage
Dim instance As GetEventLogCommand
Dim value As Integer
value = instance.Newest
instance.Newest = value
Syntax
'Declaration
<ValidateRangeAttribute(0, 2147483647)> _
<ParameterAttribute(ParameterSetName:="LogName")> _
Public Property Newest As Integer
[ValidateRangeAttribute(0, 2147483647)]
[ParameterAttribute(ParameterSetName="LogName")]
public int Newest { get; set; }
[ValidateRangeAttribute(0, 2147483647)]
[ParameterAttribute(ParameterSetName=L"LogName")]
public:
property int Newest {
int get ();
void set (int value);
}
/** @property */
public int get_Newest ()
/** @property */
public void set_Newest (int value)
public function get Newest () : int
public function set Newest (value : int)
Property Value
An Int32 value that represents the maximum number of events that are retrieved starting with the most recent event.
Remarks
This topic is included in this SDK for completeness only. For more information about this cmdlet, see Get-EventLog in the Microsoft TechNet library.
For Help at the command line, type:
get-help get-eventlog
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
GetEventLogCommand Class
GetEventLogCommand Members
Microsoft.PowerShell.Commands Namespace