JSONArray.OptJSONObject(Int32) 方法

定义

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

[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

返回

属性

注解

返回 index 值(如果存在且为 JSONObject. 否则返回 null。

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

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

适用于