See Also: GrantUriPermissionAttribute Members
The //provider/grant-uri-permission element is used to specify which data subsets of the parent content provider that permission can be granted for. The Android.Content.GrantUriPermissionAttribute custom attribute is used by monodroid.exe when generating AndroidManifest.xml to to declaratively generate //provider/grant-uri-permission elements.
The type this attribute is placed on must be a (possibly indirect) subclass of Android.Content.ContentProvider.
The following type declaration
C# Example
[ContentProvider (new[]{"com.example.Provider"} Label="Content Label")] [GrantUriPermission (Path="path")] class MyContentProvider : ContentProvider { /* ... */ }
results in the following XML fragment
XML Example
<provider android:authorities="com.example.Provider" android:label="Content Label"> <grant-uri-permission pndroid:path="path" /> </provider>