I am trying to find the index of an element from an arraylist using powershell script,however getting the below given error
Method invocation failed because [System.String[]] doesn't contain a method named 'IndexOf'.
Code Used:
[String[]]$eventList = New-Object System.Collections.ArrayList
$eventList.GetType().FullName
$index = $eventList.IndexOf('cvv');
IndexOf
. – lurker