Microsoft SDK for Java

checkDelete

This method of the StandardSecurityManager Class determines whether the specified file can be deleted by the classes active within the current execution context.

Syntax

public void checkDelete(String file);

Parameters

file The system-dependent filename.

Remarks

The check succeeds only if all the classes found on the call stack possess FileIOPermissions, and if those permissions allow delete access to the specified file. This method overrides the java.lang.SecurityManager.checkDelete(String) method.

Exceptions

SecurityException if the security check fails.

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