ServiceAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
内AndroidManifest.xml
で 要素を/manifest/application/service
生成します。
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
[System.Serializable]
public sealed class ServiceAttribute : Attribute, Java.Interop.IJniNameProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
[<System.Serializable>]
type ServiceAttribute = class
inherit Attribute
interface IJniNameProviderAttribute
- 継承
-
ServiceAttribute
- 属性
- 実装
注釈
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。
コンストラクター
ServiceAttribute() |
新しい ServiceAttribute インスタンスを構築して初期化します。 |
プロパティ
DirectBootAware |
内 |
Enabled |
サービスをシステムによってインスタンス化できるかどうか。 |
Exported |
他のアプリケーションのコンポーネントによってサービスを起動できるかどうか。 |
ForegroundServiceType |
内 |
Icon |
サービスを表すアイコン。 |
IsolatedProcess |
内 |
Label |
サービスのユーザーが読み取り可能なラベル。 |
Name |
サービスを実装するクラスの名前。 |
Permission |
クライアントがサービスを起動するために必要なアクセス許可の名前。 |
Process |
サービスを実行するプロセスの名前。 |
RoundIcon |
内 |