UiThreadTestAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
标记在 android.test.InstrumentationTestCase 应用程序的主线程上运行的测试方法。
[Android.Runtime.Annotation("android.test.UiThreadTest")]
public class UiThreadTestAttribute : Attribute
[<Android.Runtime.Annotation("android.test.UiThreadTest")>]
type UiThreadTestAttribute = class
inherit Attribute
- 继承
-
UiThreadTestAttribute
- 特性
注解
此批注已弃用。 请改用 UiThreadTest 。 应使用 AndroidX 测试编写新测试。
Java文档android.test.UiThreadTest。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
构造函数
| 名称 | 说明 |
|---|---|
| UiThreadTestAttribute() |
初始化 UiThreadTestAttribute 类的新实例。 |