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
- disposable
Type: System.IDisposable
The underlying disposable.
See Also
Reference
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
NameDescriptionRefCountDisposableInitializes a new instance of the RefCountDisposable class with the specified disposable.Top
Properties
NameDescriptionIsDisposedGets a value that indicates whether the object is disposed.Top
Methods
NameDescriptionDisposeDisposes the underlying disposable only when all dependent disposables have been disposed.
Equals(Inherited from Object.)
Finalize(Inherited from Object.)
GetDisposableReturns a dependent disposable that when disposed decreases the refcount on the underlying disposable.
GetHashCode(Inherited from Object.)
GetType(Inherited from Object.)
MemberwiseClone(Inherited from Object.)
ToString(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
NameDescriptionDisposeDisposes the underlying disposable only when all dependent disposables have been disposed.
Equals(Inherited from Object.)
Finalize(Inherited from Object.)
GetDisposableReturns a dependent disposable that when disposed decreases the refcount on the underlying disposable.
GetHashCode(Inherited from Object.)
GetType(Inherited from Object.)
MemberwiseClone(Inherited from Object.)
ToString(Inherited from Object.)Top
See Also
Reference
System.Reactive.Disposables Namespace
RefCountDisposable Properties
Include Protected Members
Include Inherited Members
The RefCountDisposable type exposes the following members.
Properties
NameDescriptionIsDisposedGets a value that indicates whether the object is disposed.Top