語言

JSONArray.OptJSONArray(Int32) 方法

定義

若值存在且為 JSONArray,則回傳 。index

[Android.Runtime.Register("optJSONArray", "(I)Lorg/json/JSONArray;", "GetOptJSONArray_IHandler")]
public virtual Org.Json.JSONArray? OptJSONArray(int index);
[<Android.Runtime.Register("optJSONArray", "(I)Lorg/json/JSONArray;", "GetOptJSONArray_IHandler")>]
abstract member OptJSONArray : int -> Org.Json.JSONArray
override this.OptJSONArray : int -> Org.Json.JSONArray

參數

index
Int32

傳回

屬性

備註

若值存在且為 JSONArray,則回傳 。index 否則會回傳 null。

org.json.JSONArray.optJSONArray(int)Java 檔。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於