The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

CancellationDisposable()s

CancellationDisposable Methods

Include Protected Members
Include Inherited Members

The CancellationDisposable type exposes the following members.

Methods

NameDescriptionPublic 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

See Also

Reference

CancellationDisposable Class

System.Reactive.Disposables Namespace

CancellationDisposable Constructor (CancellationTokenSource)

Initializes a new instance of the CancellationDisposable class that uses an existing CancellationTokenSource.

Namespace:  System.Reactive.Disposables
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Public Sub New ( _
    cts As CancellationTokenSource _
)
'Usage
Dim cts As CancellationTokenSource

Dim instance As New CancellationDisposable(cts)
public CancellationDisposable(
    CancellationTokenSource cts
)
public:
CancellationDisposable(
    CancellationTokenSource^ cts
)
new : 
        cts:CancellationTokenSource -> CancellationDisposable
public function CancellationDisposable(
    cts : CancellationTokenSource
)

Parameters

See Also

Reference

CancellationDisposable Class

CancellationDisposable Overload

System.Reactive.Disposables Namespace

CancellationDisposable Constructor

Include Protected Members
Include Inherited Members

Initializes a new instance of the CancellationDisposable class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

NameDescriptionPublic 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

See Also

Reference

CancellationDisposable Class

System.Reactive.Disposables Namespace

CancellationDisposable Constructor

Initializes a new instance of the CancellationDisposable class that uses a new CancellationTokenSource.

Namespace:  System.Reactive.Disposables
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New CancellationDisposable()
public CancellationDisposable()
public:
CancellationDisposable()
new : unit -> CancellationDisposable
public function CancellationDisposable()

See Also

Reference

CancellationDisposable Class

CancellationDisposable Overload

System.Reactive.Disposables Namespace

CancellationDisposable Properties

Include Protected Members
Include Inherited Members

The CancellationDisposable type exposes the following members.

Properties

NameDescriptionPublic propertyIsDisposedGets a value that indicates whether the object is disposed.Public propertyTokenGets the CancellationToken used by this CancellationDisposable.Top

See Also

Reference

CancellationDisposable Class

System.Reactive.Disposables Namespace

CancellationDisposable Class

Represents an IDisposable that can be checked for cancellation status.

Inheritance Hierarchy

System.Object
  System.Reactive.Disposables.CancellationDisposable

Namespace:  System.Reactive.Disposables
Assembly:  System.Reactive (in System.Reactive.dll)

Syntax

'Declaration
Public NotInheritable Class CancellationDisposable _
    Implements IDisposable
'Usage
Dim instance As CancellationDisposable
public sealed class CancellationDisposable : IDisposable
public ref class CancellationDisposable sealed : IDisposable
[<SealedAttribute>]
type CancellationDisposable =  
    class
        interface IDisposable
    end
public final class CancellationDisposable implements IDisposable

The CancellationDisposable type exposes the following members.

Constructors

NameDescriptionPublic 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

Properties

NameDescriptionPublic propertyIsDisposedGets a value that indicates whether the object is disposed.Public propertyTokenGets the CancellationToken used by this CancellationDisposable.Top

Methods

NameDescriptionPublic 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

Thread Safety

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

See Also

Reference

System.Reactive.Disposables Namespace