语言

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

适用于

另请参阅