Microsoft SDK for Java

setAllowedThreadGroup

This method of the ThreadPermission Class sets a ThreadGroup that defines the domain in which the permission object allows manipulation of Thread or ThreadGroup objects.

Syntax

public void setAllowedThreadGroup(ThreadGroup tg);

Parameters

tg The thread group that can be manipulated.

Remarks

Classes that possess this permission can manipulate any threads within this ThreadGroup or within any child ThreadGroup of this ThreadGroup. The permission also allows the manipulation of the specified ThreadGroup or any of its children.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.