Share via

RefCountDisposable.GetDisposable Method

Returns a dependent disposable that when disposed decreases the refcount on the underlying disposable.

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


Public Function GetDisposable As IDisposable
Dim instance As RefCountDisposable
Dim returnValue As IDisposable

returnValue = instance.GetDisposable()
public IDisposable GetDisposable()
IDisposable^ GetDisposable()
member GetDisposable : unit -> IDisposable 
public function GetDisposable() : IDisposable

Return Value

Type: System.IDisposable
A dependent disposable contributing to the reference count that manages the underlying disposable's lifetime.

See Also


RefCountDisposable Class

System.Reactive.Disposables Namespace