ContentProviderAttribute クラス

定義

/manifest/application/provider内でAndroidManifest.xml要素を生成します。

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
[System.Serializable]
public class ContentProviderAttribute : Attribute, Java.Interop.IJniNameProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
[<System.Serializable>]
type ContentProviderAttribute = class
    inherit Attribute
    interface IJniNameProviderAttribute
継承
ContentProviderAttribute
属性
実装

注釈

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

コンストラクター

名前 説明
ContentProviderAttribute(String[])

指定した URI 機関を使用して、新しい ContentProviderAttribute インスタンスを構築して初期化します。

プロパティ

名前 説明
Authorities

コンテンツ プロバイダーのパービューでデータを識別する URI 機関。

DirectBootAware

ユーザーがデバイスのロックを解除する前に Android コンポーネントを実行できるかどうかを取得または設定します。

Enabled

システムによってプロバイダーをインスタンス化できるかどうか。

Exported

他のアプリケーションのコンポーネントによってプロバイダーを起動できるかどうか。

GrantUriPermissions

通常、コンテンツ プロバイダーのデータにアクセスするアクセス許可を持たないユーザーに付与できるかどうか。

Icon

プロバイダーを表すアイコン。

InitOrder

コンテンツ プロバイダーをインスタンス化する順序。

Label

プロバイダーのユーザーが読み取り可能なラベル。

MultiProcess

プロバイダーのインスタンスを起動したコンポーネントのプロセスに起動できるかどうかを指定します。

Name

プロバイダーを実装するクラスの名前。

Permission

クライアントがプロバイダーを起動するために必要なアクセス許可の名前。

Process

アクティビティを実行するプロセスの名前。

ReadPermission

クライアントがコンテンツ プロバイダーに対してクエリを実行するために必要なアクセス許可。

RoundIcon

Android コンポーネント用に宣言された丸いアイコンを取得または設定します。

Syncable

コンテンツ プロバイダーの制御下にあるデータをサーバー上のデータと同期するかどうか。

WritePermission

クライアントがコンテンツ プロバイダーによって制御されるデータを変更するために必要なアクセス許可。

明示的なインターフェイスの実装

名前 説明
IJniNameProviderAttribute.Name

/manifest/application/provider内でAndroidManifest.xml要素を生成します。

適用対象

こちらもご覧ください