- uri
- The Uri whose permission is to be checked, or null to not do this check.
- readPermission
- The permission that provides overall read access, or null to not do this check.
- writePermission
- The permission that provides overall write access, or null to not do this check.
- pid
- The process ID being checked against. Must be > 0.
- uid
- The user ID being checked against. A uid of 0 is the root user, which will pass every permission check.
- modeFlags
- The type of access to grant. May be one or both of Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION.
- message
- A message to include in the exception if it is thrown.
Enforce both a Uri and normal permission. This allows you to perform both Context.EnforcePermission(string, System.Int32, System.Int32, System.Int32) and Context.EnforceUriPermission(Android.Net.Uri, System.Int32, System.Int32, System.Int32, System.Int32) in one call.