ContentProviderAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 /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 |
在 |
Enabled |
系统是否可以实例化提供程序。 |
Exported |
提供程序是否可以由其他应用程序的组件启动。 |
GrantUriPermissions |
通常无权访问内容提供商数据的用户是否可以这样做。 |
Icon |
表示提供程序的图标。 |
InitOrder |
应实例化内容提供程序的顺序。 |
Label |
提供程序的用户可读标签。 |
MultiProcess |
提供程序的实例是否可以启动到启动它的组件的进程中。 |
Name |
实现提供程序的类的名称。 |
Permission |
客户端启动提供程序必须具有的权限的名称。 |
Process |
应在其中运行活动的进程的名称。 |
ReadPermission |
客户端必须具有查询内容提供程序的权限。 |
RoundIcon |
在 |
Syncable |
内容提供程序控制下的数据是否与服务器上的数据同步。 |
WritePermission |
客户端必须具有对内容提供程序控制的数据进行更改的权限。 |