StringValues.IList<String>.IndexOf(String) Method

Definition

Returns the zero-based index of the first occurrence of an item in the StringValues.

C#
int IList<string>.IndexOf(string? item);

Parameters

item
String

The string to locate in the StringValues.

Returns

The zero-based index of the first occurrence of item within the StringValues, if found; otherwise, -1.

Implements

Applies to

Produkt Versioner
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)