語言

UiThreadTestAttribute 類別

定義

標記 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 測試來撰寫。

的 android.test.UiThreadTestJava 檔。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

建構函式

名稱 Description
UiThreadTestAttribute()

標記 android.test.InstrumentationTestCase 一個測試方法,要在應用程式的主執行緒上執行。

適用於