IndexOf Method (PSObjects)
In This Topic
Get the index of an element in the collection.
Syntax
'Declaration
Public Overridable Function IndexOf( _
ByVal As Object _
) As Integer
'Usage
Dim instance As PSObjects
Dim element As Object
Dim value As Integer
value = instance.IndexOf(element)
public virtual int IndexOf(
object
)
Parameters
- element
- Element object
See Also