Skip to content

CompositeDisposable.Contains(IDisposable) method

Defined in

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

Applies to

netstandard2.0

public bool Contains(IDisposable item)

Summary: Determines whether the CompositeDisposable contains a specific disposable.

Parameters

NameTypeDescription
itemIDisposableDisposable to search for.

Returns: bool -- true if the disposable was found; otherwise, false.

Exceptions

TypeCondition
System.ArgumentNullExceptionitem is null.