JsonArray.IndexOf(JsonValue) 方法

定義

判斷 IList<T> 中指定項目的索引。

public:
 virtual int IndexOf(System::Json::JsonValue ^ item);
public int IndexOf (System.Json.JsonValue item);
abstract member IndexOf : System.Json.JsonValue -> int
override this.IndexOf : System.Json.JsonValue -> int
Public Function IndexOf (item As JsonValue) As Integer

參數

item
JsonValue

要在 IList<T> 中尋找的物件。

傳回

如果可在清單中找到則為 item 的索引,否則為 -1。

實作

備註

注意

命名空間 System.Json 是針對不再支援的 Silverlight 所設計。 若要處理 JSON,建議您改用 命名空間中的 System.Text.Json API。

適用於