StringValues.IList<String>.IndexOf(String) 方法

定義

傳回項目在 StringValues 中第一次出現之以零為基底的索引。

 virtual int System.Collections.Generic.IList<System.String>.IndexOf(System::String ^ item) = System::Collections::Generic::IList<System::String ^>::IndexOf;
int IList<string>.IndexOf (string item);
int IList<string>.IndexOf (string? item);
abstract member System.Collections.Generic.IList<System.String>.IndexOf : string -> int
override this.System.Collections.Generic.IList<System.String>.IndexOf : string -> int
Function IndexOf (item As String) As Integer Implements IList(Of String).IndexOf

參數

item
String

要在 StringValues 中尋找的字串。

傳回

如果在 StringValues 中找到的話,則為 item 的第一個符合項目之以零起始的索引,否則為 -1。

實作

適用於