IndexOf Method
IndexOf(int)
Searches for the specified ID and returns the zero-based index of the corresponding resource.
Declaration
public int IndexOf(int id)
Public Function IndexOf(id As Integer) As Integer
Parameters
| Type |
Name |
Description |
| int |
id |
|
Returns
IndexOf(string)
Searches for the specified Name and returns the zero-based index of the corresponding resource.
Declaration
public int IndexOf(string name)
Public Function IndexOf(name As String) As Integer
Parameters
| Type |
Name |
Description |
| string |
name |
|
Returns