New to Telerik UI for WinFormsStart a free 30-day trial

Represents an object that implements the IDisposable interface and automatically releases any events, attached to this instance.

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.dll

Syntax:

C#
public abstract class DisposableObject : IDisposable

Inheritance: objectDisposableObject

Derived Classes: PropertyBagObject

Implements: IDisposable

Constructors

Initializes a new instance of the DisposableObject class.

C#
protected DisposableObject()

Properties

Gets the list of all events, associated with this instance.

C#
protected EventHandlerList Events { get; }

Gets a value indicating whether the object is already disposed.

C#
[Browsable(false)]
public bool IsDisposed { get; }

Gets a value indicating whether the object is currently in a Dispose cycle.

C#
[Browsable(false)]
public bool IsDisposing { get; }

Methods

Releases all resources, used by this instance.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Disposes all managed resources allocated by this instance.

C#
protected virtual void DisposeManagedResources()

Disposes all unmanaged resources allocated by this instance.

C#
protected virtual void DisposeUnmanagedResources()

Events

Raised when the object has finished its Dispose routine.

C#
public event EventHandler Disposed

Raised when the object enters its Dispose routine.

C#
public event EventHandler Disposing