Language

IPrivilegedAction.Run Method

Definition

When implemented, runs the action and returns its result.

[Android.Runtime.Register("run", "()Ljava/lang/Object;", "GetRunHandler:Java.Security.IPrivilegedActionInvoker, 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.IPrivilegedActionInvoker, 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

Remarks

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

Java reference for java.security.PrivilegedAction.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