CompositeDisposable.Remove(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 bool Remove(IDisposable item)
Inherited documentation
These docs were inherited from ICollection<IDisposable>. The member doesn't override them on this type.
Summary: Removes the first occurrence of a specific object from the ICollection.
Parameters
| Name | Type | Description |
|---|---|---|
item | IDisposable | The object to remove from the ICollection. |
Returns: bool --
true if item was successfully removed from the ICollection; otherwise, false. This method also returns false if item is not found in the original ICollection.
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException | The ICollection is read-only. |