Refcountdisposable

RefCountDisposable Constructor

Initializes a new instance of the RefCountDisposable class with the specified disposable.

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

Syntax

'Declaration
Public Sub New ( _
    disposable As IDisposable _
)
'Usage
Dim disposable As IDisposable

Dim instance As New RefCountDisposable(disposable)
public RefCountDisposable(
    IDisposable disposable
)
public:
RefCountDisposable(
    IDisposable^ disposable
)
new : 
        disposable:IDisposable -> RefCountDisposable
public function RefCountDisposable(
    disposable : IDisposable
)

Parameters

See Also

Reference

RefCountDisposable Class

System.Reactive.Disposables Namespace

RefCountDisposable Class

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

Inheritance Hierarchy

System.Object
  System.Reactive.Disposables.RefCountDisposable

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

Syntax

'Declaration
Public NotInheritable Class RefCountDisposable _
    Implements IDisposable
'Usage
Dim instance As RefCountDisposable
public sealed class RefCountDisposable : IDisposable
public ref class RefCountDisposable sealed : IDisposable
[<SealedAttribute>]
type RefCountDisposable =  
    class
        interface IDisposable
    end
public final class RefCountDisposable implements IDisposable

The RefCountDisposable type exposes the following members.

Constructors

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

Properties

NameDescriptionPublic propertyIsDisposedGets a value that indicates whether the object is disposed.Top

Methods

NameDescriptionPublic 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.)Top

Thread Safety

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

See Also

Reference

System.Reactive.Disposables Namespace

RefCountDisposable Methods

Include Protected Members
Include Inherited Members

The RefCountDisposable type exposes the following members.

Methods

NameDescriptionPublic 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.)Top

See Also

Reference

RefCountDisposable Class

System.Reactive.Disposables Namespace

RefCountDisposable Properties

Include Protected Members
Include Inherited Members

The RefCountDisposable type exposes the following members.

Properties

NameDescriptionPublic propertyIsDisposedGets a value that indicates whether the object is disposed.Top

See Also

Reference

RefCountDisposable Class

System.Reactive.Disposables Namespace