Språk

ThreadGroup.CheckAccess Method

Definition

Checks whether the currently running thread can modify this thread group when a security manager is present.

[Android.Runtime.Register("checkAccess", "()V", "")]
public void CheckAccess();
[<Android.Runtime.Register("checkAccess", "()V", "")>]
member this.CheckAccess : unit -> unit
Attributes

Remarks

On platforms with a security manager, this method checks whether the current thread has permission to modify this thread group.

On Android, this method is a no-op because no active security manager is available.

Added in 1.0.

This member is deprecated. This method is only useful in conjunction with the Security Manager, which is deprecated and subject to removal in a future release. Consequently, this method is also deprecated and subject to removal. There is no replacement for the Security Manager or this method.

Java documentation for java.lang.ThreadGroup.checkAccess().

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