Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

RefCountDisposable Class

Represents a disposable that only disposes its underlying disposable when all dependent disposables have been disposed.


Namespace:  System.Reactive.Disposables
Assembly:  System.Reactive (in System.Reactive.dll)

public sealed class RefCountDisposable : IDisposable

The RefCountDisposable type exposes the following members.

Public methodRefCountDisposableInitializes a new instance of the RefCountDisposable class with the specified disposable.

Public propertyIsDisposedGets a value that indicates whether the object is disposed.

Public methodDisposeDisposes the underlying disposable only when all dependent disposables have been disposed.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetDisposableReturns a dependent disposable that when disposed decreases the refcount on the underlying disposable.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft