Share via


GetEventLogCommand.After Property

Gets and sets the value of the After parameter of the Get-EventLog cmdlet. This property is introduced in Windows PowerShell 2.0.

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

Usage

'Usage
Dim instance As GetEventLogCommand
Dim value As DateTime

value = instance.After

instance.After = value

Syntax

'Declaration
<ValidateNotNullOrEmptyAttribute> _
<ParameterAttribute(ParameterSetName:="LogName")> _
Public Property After As DateTime
[ValidateNotNullOrEmptyAttribute] 
[ParameterAttribute(ParameterSetName="LogName")] 
public DateTime After { get; set; }
[ValidateNotNullOrEmptyAttribute] 
[ParameterAttribute(ParameterSetName=L"LogName")] 
public:
property DateTime After {
    DateTime get ();
    void set (DateTime value);
}
/** @property */
public DateTime get_After ()

/** @property */
public void set_After (DateTime value)
public function get After () : DateTime

public function set After (value : DateTime)

Property Value

A DateTime object. Only events that occur after this date and time are retrieved.

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

Other Resources

Windows PowerShell SDK