语言

MockCursor.HasUpdates 属性

定义

引发而不是 UnsupportedOperationException 提供挂起更新状态。 重写此属性以用于测试。

public virtual bool HasUpdates { [Android.Runtime.Register("hasUpdates", "()Z", "GetHasUpdatesHandler")] get; }
[<get: Android.Runtime.Register("hasUpdates", "()Z", "GetHasUpdatesHandler")>]
member this.HasUpdates : bool

属性值

默认模拟未提供任何值。 它的 getter 引发 UnsupportedOperationException;重写此属性以提供挂起更新状态。

特性

注解

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

适用于