TypedArray.HasValue(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷是否存在 var<index>/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
要檢索屬性的索引。
傳回
如果屬性有值,則為真;否則為假。
- 屬性
例外狀況
如果 TypedArray 已經被回收過。
備註
判斷是否存在 var<index>/var< 的>屬性。
<strong>Note:</strong> 如果屬性被設定為 @empty 或 @undefined,此方法會回傳 false。
Java 文件 android.content.res.TypedArray.hasValue(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。