![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
IndexOf Method (item)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Resources ► ResourceCollection ► IndexOf(Resource)
Gets the index of an item in the collection.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
public int IndexOf( Resource item )
Public Function IndexOf ( item As Resource ) As Integer
public: int IndexOf( Resource^ item )
![](collapse_all.gif)
- item (Resource)
- The Resource 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.Resources (Module: Microsoft.Deployment.Resources.dll) Version: 3.0.0.0 (3.9.1006.0)