IDisposable interface
Implemented by an object that supports a disposal lifecycle.
Remarks
The dispose event allows an object to free any resources that it allocated before its lifecycle ends.
Properties
is |
Returns true if the dispose() method has been called. Once an object is disposed, it remains in this state permanently. |
Methods
dispose() | This method is called to permanently dispose the object. |
Property Details
isDisposed
Returns true if the dispose() method has been called. Once an object is disposed, it remains in this state permanently.
isDisposed: boolean;
Property Value
boolean
Remarks
After the object has been disposed, do not call its methods or access its properties.
Method Details
dispose()
This method is called to permanently dispose the object.
dispose(): void;
Returns
void
Remarks
After the object has been disposed, do not call its methods or access its properties.