Service.StopSelf メソッド

定義

オーバーロード

名前 説明
StopSelf()

サービスが以前に開始されていた場合は、サービスを停止します。

StopSelf(Int32)

結果を返さない stopSelfResult(int) の古いバージョン。

StopSelf()

サービスが以前に開始されていた場合は、サービスを停止します。

[Android.Runtime.Register("stopSelf", "()V", "")]
public void StopSelf();
[<Android.Runtime.Register("stopSelf", "()V", "")>]
member this.StopSelf : unit -> unit
属性

注釈

サービスが以前に開始されていた場合は、サービスを停止します。 これは、この特定のサービスに対する Context.stopService(Intent) の呼び出しと同じです。

関連項目も参照:

android.app.Service.stopSelfの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

StopSelf(Int32)

結果を返さない stopSelfResult(int) の古いバージョン。

[Android.Runtime.Register("stopSelf", "(I)V", "")]
public void StopSelf(int startId);
[<Android.Runtime.Register("stopSelf", "(I)V", "")>]
member this.StopSelf : int -> unit

パラメーター

startId
Int32

int

属性

注釈

結果を返さない stopSelfResult(int) の古いバージョン。

関連項目も参照:

android.app.Service.stopSelfの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象