Microsoft SDK for Java

markFileAsExpendable

The markFileAsExpendable method of the ClientStore Class contains the following signatures:

markFileAsExpendable(String stgfilename, boolean deletewhenfull)
markFileAsExpendable(String stgfilename, int flags, boolean deletewhenfull)

markFileAsExpendable(String stgfilename, boolean deletewhenfull)

Marks the specified file so that it is automatically deleted when the storage area is full.

Syntax

public void markFileAsExpendable(String stgfilename, boolean deletewhenfull) throws IOExceptin;

Parameters

stgfilename The name of the file to mark.
deletewhenfull Set this value to true if the file is to be deleted when the client storage area is full; otherwise, set this value to false.

Exceptions

IOException if the file name is not valid, if the file cannot be found, or if the file name specifies a directory.

See Also

OPEN_FL_EXPENDABLE

markFileAsExpendable(String stgfilename, int flags, boolean deletewhenfull)

Marks the specified file so that it is automatically deleted when the storage area is full.

Syntax

public void markFileAsExpendable(String stgfilename, int flags, boolean deletewhenfull) throws IOException;

Parameters

stgfilename The name of the file to mark.
flags A value that indicates the storage area from which to delete stgfilename. It can be either or both of the STORE_FL_LOCAL and STORE_FL_ROAMING flags.
deletewhenfull Set this value to true if the file is to be deleted when the client storage area is full; otherwise, set this value to false.

Exceptions

IOException if the file name is not valid, if the file cannot be found, or if the file name specifies a directory.

See Also

OPEN_FL_EXPENDABLE

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