語言

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);
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字串。

傳回

若在 中首次出現的 為itemStringValues零基索引;否則為 -1。

實作

適用於