![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
IndexOf Method (item)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller.Package ► InstallPathCollection ► IndexOf(InstallPath)
Gets the index of a child path in the collection.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public int IndexOf( InstallPath item )
Public Function IndexOf ( item As InstallPath ) As Integer
public: virtual int IndexOf( InstallPath^ item ) sealed
abstract IndexOf : item : InstallPath -> int override IndexOf : item : InstallPath -> int
![](collapse_all.gif)
- item (InstallPath)
- The InstallPath to search for.
![](collapse_all.gif)
Int32
The index of the item, or -1 if not found.
The index of the item, or -1 if not found.
Assembly: Microsoft.Deployment.WindowsInstaller.Package (Module: Microsoft.Deployment.WindowsInstaller.Package.dll) Version: 3.0.0.0 (3.11.1.2318)