TypedArray.HasValue(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定 var>索引</var> 是否有<属性。
[Android.Runtime.Register("hasValue", "(I)Z", "GetHasValue_IHandler")]
public virtual bool HasValue(int index);
[<Android.Runtime.Register("hasValue", "(I)Z", "GetHasValue_IHandler")>]
abstract member HasValue : int -> bool
override this.HasValue : int -> bool
参数
- index
- Int32
要检索的属性的索引。
返回
如果特性具有值,则为 True;否则为 false。
- 属性
例外
如果 TypedArray 已回收,
注解
确定 var>索引</var> 是否有<属性。
<strong Note:</strong>> If the attribute was set to @empty or@undefined, this method returnsfalse.
Java文档android.content.res.TypedArray.hasValue(int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。