ReadOnlyStringCollection.IndexOf (String) Method (BCL)
Use this method to return the zero based index of the first occurrence within the entire ReadOnlyStringCollection class.
Definition
[Visual Basic .NET]
Public Function IndexOf( _ByValstr As System.String _
) As System.Int32
[C#]
public System.Int32 IndexOf(System.Stringstr);
Parameters
[Visual Basic .NET]
- str
The string to search for.
[C#]
- str
The string to search for.
Return Value
The zero-based index of the first occurrence within the ReadOnlyStringCollection class.
Remarks
Searches for the specified string and returns the zero-based index of the first occurrence within the entire ReadOnlyStringCollection. Returns -1 if the specified string is not found.
Requirements
Namespace: Microsoft.CommerceServer.Runtime
Platforms: Windows 2000, Windows Server 2003
Assembly: Microsoft.CommerceServer.Runtime.dll
Copyright © 2005 Microsoft Corporation.
All rights reserved.