This topic has not yet been rated - Rate this topic

Sys.IDisposable Interface

Provides a common interface for the application-defined tasks of closing, releasing, or resetting resources held by instances of a registered Microsoft Ajax Library class.

Namespace: Sys

Inherits: None

myNamespace.myClassName.registerClass('myNamespace.myClassName', null, Sys.IDisposable);
Sys.IDisposable dispose Method

Releases resources held by an object, or prepares an object for reuse.

Implement the IDisposable interface to provide a common interface for closing or releasing resources held by instances of your registered Microsoft Ajax Library class. 

You register an interface by when you register the class by calling the Type.registerClass method. You specify IDisposable in the interfaceTypes parameter when you call Type.registerClass.

For more information about registering a class, see Type.registerClass Method.

NoteNote

The Sys.Component base class implements the IDisposable interface. If you create a component class derived from the Sys.Component base class, your class automatically inherits the IDisposable interface implementation.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.