JSONArray.GetBoolean(Int32) 方法

定义

返回 index 值(如果存在且为布尔值或可强制转换为布尔值)。

[Android.Runtime.Register("getBoolean", "(I)Z", "GetGetBoolean_IHandler")]
public virtual bool GetBoolean(int index);
[<Android.Runtime.Register("getBoolean", "(I)Z", "GetGetBoolean_IHandler")>]
abstract member GetBoolean : int -> bool
override this.GetBoolean : int -> bool

参数

index
Int32

返回

属性

例外

如果值 index 不存在或无法强制转换为布尔值,

注解

返回 index 值(如果存在且为布尔值或可强制转换为布尔值)。

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

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

适用于