Microsoft SDK for Java

cancel

This method of the TaskManager Class cancels a pending runnable object.

Syntax

public synchronized boolean cancel(int id);

Return Value

Returns true if the runnable object was cancelled successfully; returns false if the task was already run or had never been scheduled.

Parameters

id An integer that identifies the task.

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