Skip to content

CompositeDisposable.Add(IDisposable) method

Defined in

Type: CompositeDisposable Namespace: System.Reactive.Disposables Assembly: System.Reactive.dll

Applies to

net8.0, net8.0-windows10.0.19041, netstandard2.0

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.

Parameters

NameTypeDescription
itemIDisposableThe object to add to the ICollection.

Exceptions

TypeCondition
System.NotSupportedExceptionThe ICollection is read-only.