Export (0) Print
Expand All

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)

[<SealedAttribute>]
type CancellationDisposable =  
    class
        interface IDisposable
    end

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.
Show:
© 2014 Microsoft