Sdílet prostřednictvím


ContentProvider.ReadPermission Property

Definition

Caution

Please use SetReadPermission() instead. This setter is not really public in Android API and will vanish in the future versions.

Return the name of the permission required for read-only access to this content provider. -or- Change the permission required to read data from the content provider.

public string? ReadPermission { [Android.Runtime.Register("getReadPermission", "()Ljava/lang/String;", "")] get; [Android.Runtime.Register("setReadPermission", "(Ljava/lang/String;)V", "")] [System.Obsolete("Please use SetReadPermission() instead. This setter is not really public in Android API and will vanish in the future versions.")] set; }
[<get: Android.Runtime.Register("getReadPermission", "()Ljava/lang/String;", "")>]
[<set: Android.Runtime.Register("setReadPermission", "(Ljava/lang/String;)V", "")>]
[<set: System.Obsolete("Please use SetReadPermission() instead. This setter is not really public in Android API and will vanish in the future versions.")>]
member this.ReadPermission : string with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Return the name of the permission required for read-only access to this content provider. This method can be called from multiple threads, as described in Processes and Threads.

Java documentation for android.content.ContentProvider.getReadPermission().

Property setter documentation:

Change the permission required to read data from the content provider. This is normally set for you from its manifest information when the provider is first created.

Java documentation for android.content.ContentProvider.setReadPermission(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to