CompositeDisposable Class

March 22, 2012

Represents a group of Disposables that are disposed together.

System.Object
  Microsoft.Phone.Reactive.CompositeDisposable

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

public sealed class CompositeDisposable : ICollection<IDisposable>, 
	IEnumerable<IDisposable>, IEnumerable, IDisposable

The CompositeDisposable type exposes the following members.

  NameDescription
Public methodCompositeDisposableConstructs a GroupDisposable from a group of disposables.
Top

  NameDescription
Public propertyCountGets the number of disposables contained in the GroupDisposable.
Public propertyIsReadOnlyAlways returns false.
Top

  NameDescription
Public methodAddAdds a disposable to the GroupDisposable or disposes the disposable if the GroupDisposable is disposed.
Public methodClearRemoves and disposes all disposables from the GroupDisposable, but does not dispose the GroupDisposable.
Public methodContainsDetermines whether the GroupDisposable contains a specific disposable.
Public methodCopyToCopies the disposables contained in the GroupDisposable to an Array, starting at a particular Array index.
Public methodDisposeDisposes all disposables in the group and removes them from the group.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that iterates through the GroupDisposable.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveRemoves and disposes the first occurrence of a disposable from the GroupDisposable.
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public Extension MethodSubscribe<IDisposable>(IObserver<IDisposable>)Overloaded. Subscribes an observer to an enumerable sequence. Returns an object that can be used to unsubscribe the observer from the enumerable. (Defined by Observable.)
Public Extension MethodSubscribe<IDisposable>(IObserver<IDisposable>, IScheduler)Overloaded. Subscribes an observer to an enumerable sequence. Returns an object that can be used to unsubscribe the observer from the enumerable. (Defined by Observable.)
Public Extension MethodToObservable<IDisposable>()Overloaded. Converts an enumerable sequence to an observable sequence. (Defined by Observable.)
Public Extension MethodToObservable<IDisposable>(IScheduler)Overloaded. Converts an enumerable sequence to an observable sequence. (Defined by Observable.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns an enumerator that iterates through the GroupDisposable.
Top

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show: