CompositeDisposable.Add(IDisposable) method¶
Defined in
Type: CompositeDisposable
Namespace: System.Reactive.Disposables
Assembly: System.Reactive.dll
Applies to
netstandard2.0, net472
public void Add(IDisposable item)
Inherited documentation
These docs were inherited from ICollection<IDisposable>. The member doesn't override them on this type.
Summary: Adds an item to the ICollection (opens in a new tab).
Parameters
| Name | Type | Description |
|---|---|---|
item | IDisposable (opens in a new tab) | The object to add to the ICollection (opens in a new tab). |
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException (opens in a new tab) | The ICollection (opens in a new tab) is read-only. |