Share via


GetEventLogCommand.Index Property

Gets and sets the value of the Index 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 Integer()

value = instance.Index

instance.Index = value

Syntax

'Declaration
<ValidateRangeAttribute(1, 2147483647)> _
<ParameterAttribute(ParameterSetName:="LogName")> _
<ValidateNotNullOrEmptyAttribute> _
Public Property Index As Integer()
[ValidateRangeAttribute(1, 2147483647)] 
[ParameterAttribute(ParameterSetName="LogName")] 
[ValidateNotNullOrEmptyAttribute] 
public int[] Index { get; set; }
[ValidateRangeAttribute(1, 2147483647)] 
[ParameterAttribute(ParameterSetName=L"LogName")] 
[ValidateNotNullOrEmptyAttribute] 
public:
property array<int>^ Index {
    array<int>^ get ();
    void set (array<int>^ value);
}
/** @property */
public int[] get_Index ()

/** @property */
public void set_Index (int[] value)
public function get Index () : int[]

public function set Index (value : int[])

Property Value

An Int32 array that specifies the indexes of the events to be 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