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
- 屬性
- 實作
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
建構函式
| 名稱 | Description |
|---|---|
| ContentProviderAttribute(String[]) |
建構並初始化 ContentProviderAttribute 一個新的實例,使用指定的 URI 權限。 |
屬性
| 名稱 | Description |
|---|---|
| Authorities |
URI 權限機關負責在內容提供者的監督下識別資料。 |
| DirectBootAware |
在使用者解鎖裝置前,取得或設定 Android 元件是否能執行。 |
| Enabled |
系統是否能實例化提供者。 |
| Exported |
是否能透過其他應用程式的組件啟動該服務提供者。 |
| GrantUriPermissions |
是否能讓那些原本無法取得內容提供者資料的人獲得存取權限。 |
| Icon |
一個代表提供者的圖示。 |
| InitOrder |
內容提供者應以何種方式實例化。 |
| Label |
一個使用者可閱讀的提供者標籤。 |
| MultiProcess |
是否可以將服務提供者的實例啟動到啟動它的元件流程中。 |
| Name |
實作提供者的類別名稱。 |
| Permission |
客戶必須擁有的授權名稱,才能啟動該服務提供者。 |
| Process |
活動應執行的過程名稱。 |
| ReadPermission |
客戶必須擁有的權限,才能查詢內容提供者。 |
| RoundIcon |
取得或設定為 Android 元件宣告的圓形圖示。 |
| Syncable |
內容提供者控制的資料是否要與伺服器上的資料同步。 |
| WritePermission |
客戶必須擁有權限,才能對內容提供者控制的資料進行變更。 |
明確介面實作
| 名稱 | Description |
|---|---|
| IJniNameProviderAttribute.Name |
生成 |