Class
DisposableObject

Represents a basic object which implements IDisposable interface.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
[CLSCompliant(true)]
public class DisposableObject : IDisposable

Inheritance: objectDisposableObject

Derived Classes: PathRadBrushRadEffectResourceDictionaryRoundedRectangleRadObjectGanttCellSelfReferenceLayoutGridViewSynchronizationServiceRadPageViewObjectRadPageViewSubPageCollectionRadReminderBindableObjectRadTabbedFormControlObjectSelfReferenceCellLayout

Implements: IDisposable

Constructors

DisposableObject()

Declaration

cs-api-definition
public DisposableObject()

Properties

BitState

Gets the RadBitVector64 structure that holds all the bit states of the object.

Declaration

cs-api-definition
[CLSCompliant(false)]
protected RadBitVector64 BitState { get; }

Property Value

RadBitVector64

Events

Provides a simple list of delegates.

Declaration

cs-api-definition
protected EventHandlerList Events { get; }

Property Value

EventHandlerList

IsDisposed

Determines whether the object is already disposed.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsDisposed { get; }

Property Value

bool

IsDisposing

Determines whether the object is in a process of being disposed of.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsDisposing { get; }

Property Value

bool

Methods

Dispose()

Releases all resources associated with this object.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

Dispose(bool)

Performs the actual Dispose logic.

Declaration

cs-api-definition
protected void Dispose(bool disposing)

Parameters

disposing

bool

DisposeManagedResources()

Disposes all MANAGED resources - such as Bitmaps, GDI+ objects, etc.

Declaration

cs-api-definition
protected virtual void DisposeManagedResources()

DisposeUnmanagedResources()

Releases any UNMANAGED resources used by this object. NOTE: If you declare some unmanaged resources in your class, you should override its finalizer and put disposing logic there also.

Declaration

cs-api-definition
protected virtual void DisposeUnmanagedResources()

GetBitState(long)

Gets the current bit state for the object, defined by the provided key.

Declaration

cs-api-definition
protected bool GetBitState(long key)

Parameters

key

long

Returns

bool

OnBitStateChanged(long, bool, bool)

Notifies the object for a change in its bit state.

Declaration

cs-api-definition
protected virtual void OnBitStateChanged(long key, bool oldValue, bool newValue)

Parameters

key

long

oldValue

bool

newValue

bool

PerformDispose(bool)

Performs the core resources release logic.

Declaration

cs-api-definition
protected virtual void PerformDispose(bool disposing)

Parameters

disposing

bool

SetBitState(long, bool)

Applies the specified boolean value to the BitVector of the object.

Declaration

cs-api-definition
protected virtual void SetBitState(long key, bool value)

Parameters

key

long

value

bool

Events

Disposed

Declaration

cs-api-definition
[Browsable(false)]
public event EventHandler Disposed

Event Value

EventHandler

Disposing

Declaration

cs-api-definition
[Browsable(false)]
public event EventHandler Disposing

Event Value

EventHandler