Microsoft SDK for Java

setUnrestricted

This method of the ExecutionPermission Class turns the unrestricted state of this permission object on or off.

Syntax

public void setUnrestricted(boolean flag);

Parameters

flag The flag that indicates whether to turn the unrestricted state on or off. If true, this method turns the unrestricted state on; otherwise, this method turns the unrestricted state off.

Remarks

If the unrestricted state is on, the permission object allows any application to be executed by the classes that possess this permission. If the unrestricted state is off, the permission allows only the execution of applications explicitly specified by the includeApplications method. By default, the unrestricted state is off.

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