語言

ApplicationExitInfo.ReasonExitSelf 欄位

定義

警告

This constant will be removed in the future version. Use Android.App.ApplicationExitInfoReason enum directly instead of this field.

應用程式程序通常會自行退出,例如透過 java.lang.System#exit; #getStatus 會指定退出代碼。

[Android.Runtime.Register("REASON_EXIT_SELF", ApiSince=30)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.ApplicationExitInfoReason enum directly instead of this field.", true)]
public const Android.App.ApplicationExitInfoReason ReasonExitSelf = 1;
[<Android.Runtime.Register("REASON_EXIT_SELF", ApiSince=30)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.ApplicationExitInfoReason enum directly instead of this field.", true)>]
val mutable ReasonExitSelf : Android.App.ApplicationExitInfoReason

欄位值

Value = 1

實作

屬性

備註

應用程式程序通常會自行退出,例如透過 System.exit(int);getStatus() 會指定出口代碼。 應用程式通常不應該這麼做,因為系統在流程管理方面有更好的知識。

Android 參考資料。android.app.ApplicationExitInfo.REASON_EXIT_SELF

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

適用於