語言

JSONArray.OptJSONObject(Int32) 方法

定義

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

[Android.Runtime.Register("optJSONObject", "(I)Lorg/json/JSONObject;", "GetOptJSONObject_IHandler")]
public virtual Org.Json.JSONObject? OptJSONObject(int index);
[<Android.Runtime.Register("optJSONObject", "(I)Lorg/json/JSONObject;", "GetOptJSONObject_IHandler")>]
abstract member OptJSONObject : int -> Org.Json.JSONObject
override this.OptJSONObject : int -> Org.Json.JSONObject

參數

index
Int32

傳回

屬性

備註

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

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

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

適用於