JSONArray.GetJSONObject(Int32) 方法

定义

返回 index 值(如果存在且为 JSONObject.

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

参数

index
Int32

返回

属性

例外

如果值不存在或不是 JSONObject

注解

返回 index 值(如果存在且为 JSONObject.

适用于 . 的 org.json.JSONArray.getJSONObject(int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于