nsICancelable

IID:d94ac0a0-bb18-46b8-844e-84159064b0bd
Inherits From:nsISupports
Status:UNDER_REVIEW

This interface provides a means to cancel an operation that is in progress.


Methods

void cancel ( nsresult reason )

void cancel ( nsresult reason )

Call this method to request that this object abort whatever operation it may be performing.

Arguments:
reason: Pass a failure code to indicate the reason why this operation is being canceled. It is an error to pass a success code.

References

This interface is the type of the following properties:

nsIDownload.cancelable

This interface is passed as an argument to the following methods:

nsIDNSListener.onLookupComplete, nsIDownloadManager.addDownload, nsIProtocolProxyCallback.onProxyAvailable, nsITransfer.init

This interface is returned from the following methods:

nsIDNSService.asyncResolve, nsIProtocolProxyService.asyncResolve

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com