alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class DisposableWithEvent

    This class provides a base class that implements the IDisposable interface as suggested in the .NET documentation using the Disposable pattern. After the object was disposed a Disposed event is raised.

    Inheritance
    object
    DisposableWithEvent
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Maui.GridCommon.Collections.ComponentModel
    Assembly: Syncfusion.Maui.GridCommon.dll
    Syntax
    public class DisposableWithEvent : IDisposable
    Remarks

    If you derive from this class, you only need to override the protected Dispose method and check the disposing parameter.

    Constructors

    DisposableWithEvent()

    Declaration
    public DisposableWithEvent()

    Properties

    IsDisposed

    Allows to detect if object is disposed or not. True indicates object is disposed, otherwise indicates object is still alive and ready for use.

    Declaration
    protected bool IsDisposed { get; }
    Property Value
    Type
    bool

    IsDisposing

    Returns True if object is executing the Dispose() or Dispose(bool) method call.

    Declaration
    public bool IsDisposing { get; }
    Property Value
    Type
    bool

    Methods

    Dispose()

    Releases all resources used by the Component.

    Declaration
    public void Dispose()

    Dispose(bool)

    Releases the unmanaged resources used by the Component and optionally releases the managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    Remarks

    See the documentation for the Component class and its Dispose member.

    OnDisposed(EventArgs)

    Raises the Disposed event.

    Declaration
    protected virtual void OnDisposed(EventArgs e)
    Parameters
    Type Name Description
    EventArgs e

    An EventArgs that contains the event data.

    Events

    Disposed

    Occurs after the object was disposed.

    Declaration
    public event EventHandler Disposed
    Event Type
    Type
    EventHandler

    Implements

    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved