Skip to content

CompositeDisposable.Remove(IDisposable) method

Defined in

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

Applies to

netstandard2.0

public bool Remove(IDisposable item)

Summary: Removes and disposes the first occurrence of a disposable from the CompositeDisposable.

Parameters

NameTypeDescription
itemIDisposableDisposable to remove.

Returns: bool -- true if found; false otherwise.

Exceptions

TypeCondition
System.ArgumentNullExceptionitem is null.