Compartilhar via


AccessController.DoPrivileged Method

Definition

Overloads

DoPrivileged(IPrivilegedAction)

Calls action.run().

DoPrivileged(IPrivilegedExceptionAction)

Calls action.run().

DoPrivileged(IPrivilegedAction, AccessControlContext)

Calls action.run().

DoPrivileged(IPrivilegedExceptionAction, AccessControlContext)

Calls action.run().

DoPrivileged(IPrivilegedAction)

Calls action.run().

[Android.Runtime.Register("doPrivileged", "(Ljava/security/PrivilegedAction;)Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Lang.Object? DoPrivileged (Java.Security.IPrivilegedAction? action);
[<Android.Runtime.Register("doPrivileged", "(Ljava/security/PrivilegedAction;)Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member DoPrivileged : Java.Security.IPrivilegedAction -> Java.Lang.Object

Parameters

Returns

Attributes

Remarks

Calls action.run().

Java documentation for java.security.AccessController.doPrivileged(java.security.PrivilegedAction<T>).

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

DoPrivileged(IPrivilegedExceptionAction)

Calls action.run().

[Android.Runtime.Register("doPrivileged", "(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Lang.Object? DoPrivileged (Java.Security.IPrivilegedExceptionAction? action);
[<Android.Runtime.Register("doPrivileged", "(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member DoPrivileged : Java.Security.IPrivilegedExceptionAction -> Java.Lang.Object

Parameters

Returns

Attributes

Remarks

Calls action.run().

Java documentation for java.security.AccessController.doPrivileged(java.security.PrivilegedExceptionAction<T>).

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

DoPrivileged(IPrivilegedAction, AccessControlContext)

Calls action.run().

[Android.Runtime.Register("doPrivileged", "(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Lang.Object? DoPrivileged (Java.Security.IPrivilegedAction? action, Java.Security.AccessControlContext? context);
[<Android.Runtime.Register("doPrivileged", "(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member DoPrivileged : Java.Security.IPrivilegedAction * Java.Security.AccessControlContext -> Java.Lang.Object

Parameters

Returns

Attributes

Remarks

Calls action.run().

Java documentation for java.security.AccessController.doPrivileged(java.security.PrivilegedAction<T>, java.security.AccessControlContext).

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

DoPrivileged(IPrivilegedExceptionAction, AccessControlContext)

Calls action.run().

[Android.Runtime.Register("doPrivileged", "(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Java.Lang.Object? DoPrivileged (Java.Security.IPrivilegedExceptionAction? action, Java.Security.AccessControlContext? context);
[<Android.Runtime.Register("doPrivileged", "(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member DoPrivileged : Java.Security.IPrivilegedExceptionAction * Java.Security.AccessControlContext -> Java.Lang.Object

Parameters

Returns

Attributes

Remarks

Calls action.run().

Java documentation for java.security.AccessController.doPrivileged(java.security.PrivilegedExceptionAction<T>, java.security.AccessControlContext).

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