Share via


CompositeDisposable.Add Method

Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed.

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

Syntax

'Declaration
Public Sub Add ( _
    item As IDisposable _
)
'Usage
Dim instance As CompositeDisposable
Dim item As IDisposable

instance.Add(item)
public void Add(
    IDisposable item
)
public:
virtual void Add(
    IDisposable^ item
) sealed
abstract Add : 
        item:IDisposable -> unit 
override Add : 
        item:IDisposable -> unit 
public final function Add(
    item : IDisposable
)

Parameters

Implements

ICollection<T>.Add(T)

See Also

Reference

CompositeDisposable Class

System.Reactive.Disposables Namespace