Επεξεργασία

Κοινή χρήση μέσω


ReadOnlyStringCollection.IndexOf(String) Method

Definition

Returns the index of the first occurrence of the specified String object in this collection.

public:
 int IndexOf(System::String ^ value);
public int IndexOf (string value);
member this.IndexOf : string -> int
Public Function IndexOf (value As String) As Integer

Parameters

value
String

The String object to search for in this collection.

Returns

The zero-based index of the first matching object. Returns -1 if no member of this collection is identical to the String object.

Exceptions

site is null.

Applies to

See also