Show / Hide Table of Contents

    Class Disposable

    Common disposable pattern

    Inheritance
    Object
    Disposable
    AutoClean
    ObjectRootDisposable
    Observer<T>
    SlimLock
    GraphLogger
    Implements
    IDisposable
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.Graph.Communications.Common
    Assembly: Microsoft.Graph.Communications.Common.dll
    Syntax
    public class Disposable : IDisposable

    Constructors

    Disposable()

    Declaration
    public Disposable()

    Properties

    IsDisposed

    Gets a value indicating whether this instance is disposed.

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

    true if this instance is disposed; otherwise, false.

    Methods

    Dispose()

    Dispose resources.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Protected implementation of dispose. This will be triggered only once regardless if manually disposed or garbage collected.

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

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

    Finalize()

    Finalizes an instance of the Disposable class.

    Declaration
    protected void Finalize()

    Implements

    System.IDisposable

    Extension Methods

    AdditionalDataExtensions.SetInAdditionalData(Object, String, Object)
    Extensions.Pin(Object)
    Extensions.ChangeType(Object, Type)
    Extensions.ChangeType<T>(Object)
    Extensions.TryDispose(Object, IGraphLogger)
    ReflectionUtils.GetPropertyUsingReflection(Object, String)
    ReflectionUtils.SetPropertyUsingReflection(Object, String, Object)
    Validator.IsNull(Object, String, String)
    Validator.NotNull<T>(T, String, String)
    Validator.Equals<T>(T, T, String, String)
    Validator.Equals<T, TE>(T, T, String)
    Validator.NotEquals<T>(T, T, String, String)
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.