skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class DisposableObject

Represents a basic object which implements IDisposable interface.

Inheritance
System.Object
DisposableObject
Path
RadBrush
RadEffect
ResourceDictionary
RoundedRectangle
RadObject
GanttCellSelfReferenceLayout
GridViewSynchronizationService
RadPageViewObject
RadPageViewSubPageCollection
RadReminderBindableObject
RadTabbedFormControlObject
SelfReferenceCellLayout
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll

Syntax

[CLSCompliant(true)]
public class DisposableObject : IDisposable

Constructors

DisposableObject()

Declaration
public DisposableObject()

Properties

BitState

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

Declaration
[CLSCompliant(false)]
protected RadBitVector64 BitState { get; }
Property Value
RadBitVector64

Events

Provides a simple list of delegates.

Declaration
protected EventHandlerList Events { get; }
Property Value
System.ComponentModel.EventHandlerList

IsDisposed

Determines whether the object is already disposed.

Declaration
public bool IsDisposed { get; }
Property Value
System.Boolean

IsDisposing

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

Declaration
public bool IsDisposing { get; }
Property Value
System.Boolean

Methods

Dispose()

Releases all resources associated with this object.

Declaration
public void Dispose()
Implements
System.IDisposable.Dispose()

Dispose(Boolean)

Performs the actual Dispose logic.

Declaration
protected void Dispose(bool disposing)
Parameters
System.Boolean disposing

DisposeManagedResources()

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

Declaration
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
protected virtual void DisposeUnmanagedResources()

GetBitState(Int64)

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

Declaration
protected bool GetBitState(long key)
Parameters
System.Int64 key

Returns
System.Boolean

OnBitStateChanged(Int64, Boolean, Boolean)

Notifies the object for a change in its bit state.

Declaration
protected virtual void OnBitStateChanged(long key, bool oldValue, bool newValue)
Parameters
System.Int64 key

System.Boolean oldValue

System.Boolean newValue

PerformDispose(Boolean)

Performs the core resources release logic.

Declaration
protected virtual void PerformDispose(bool disposing)
Parameters
System.Boolean disposing

SetBitState(Int64, Boolean)

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

Declaration
protected virtual void SetBitState(long key, bool value)
Parameters
System.Int64 key

System.Boolean value

Events

Disposed

Declaration
public event EventHandler Disposed
Event Type
System.EventHandler

Disposing

Declaration
public event EventHandler Disposing
Event Type
System.EventHandler

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.