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。

Java文档org.json.JSONArray.optJSONObject(int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于