Searches the collection for the specified object and returns a zero-based index of the first occurrence within the collection, if found; otherwise, -1.
[Visual Basic .NET] |
---|
Public Function IndexOf( _ ByVal Name As String _ ) As |
[C#] |
---|
public int IndexOf( string Name ); |
[Managed C++] |
---|
public: int IndexOf( String __gc ^ Name ); |
[Java] |
---|
public int indexOf( String Name ); |
- Name