This topic has not yet been rated - Rate this topic

CancellationDisposable Class

Represents an IDisposable that can be checked for cancellation status.

System.Object
  System.Reactive.Disposables.CancellationDisposable

Namespace:  System.Reactive.Disposables
Assembly:  System.Reactive (in System.Reactive.dll)
public sealed class CancellationDisposable : IDisposable

The CancellationDisposable type exposes the following members.

  NameDescription
Public methodCancellationDisposable()Initializes a new instance of the CancellationDisposable class that uses a new CancellationTokenSource.
Public methodCancellationDisposable(CancellationTokenSource)Initializes a new instance of the CancellationDisposable class that uses an existing CancellationTokenSource.
Top
  NameDescription
Public propertyIsDisposedGets a value that indicates whether the object is disposed.
Public propertyTokenGets the CancellationToken used by this CancellationDisposable.
Top
  NameDescription
Public methodDisposeCancels the CancellationTokenSource.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.