Permission.CheckGuard(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks whether access to the specified Object should be granted.
[Android.Runtime.Register("checkGuard", "(Ljava/lang/Object;)V", "GetCheckGuard_Ljava_lang_Object_Handler")]
public virtual void CheckGuard(Java.Lang.Object? object);
[<Android.Runtime.Register("checkGuard", "(Ljava/lang/Object;)V", "GetCheckGuard_Ljava_lang_Object_Handler")>]
abstract member CheckGuard : Java.Lang.Object -> unit
override this.CheckGuard : Java.Lang.Object -> unit
Parameters
- object
- Object
the object being guarded (currently ignored).
Implements
- Attributes
Exceptions
Remarks
Implements the guard interface for a permission. The SecurityManager.checkPermission method is called, passing this permission object as the permission to check. Returns silently if access is granted. Otherwise, throws a SecurityException.
Java reference for java.security.Permission.checkGuard.
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.