Language

IPrivilegedExceptionAction.Run Method

Definition

When implemented, runs the action and returns its result, with support for exceptions.

[Android.Runtime.Register("run", "()Ljava/lang/Object;", "GetRunHandler:Java.Security.IPrivilegedExceptionActionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object? Run();
[<Android.Runtime.Register("run", "()Ljava/lang/Object;", "GetRunHandler:Java.Security.IPrivilegedExceptionActionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Run : unit -> Java.Lang.Object

Returns

The result of the action. AccessController.doPrivileged returns this value.

Attributes

Exceptions

Remarks

On Android, AccessController.doPrivileged calls this method directly without enabling privileges.

Java reference for java.security.PrivilegedExceptionAction.run.

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