CancellationDisposable Methods
Include Protected Members
Include Inherited Members
The CancellationDisposable type exposes the following members.
Methods
NameDescriptionDisposeCancels the CancellationTokenSource.
Equals(Inherited from Object.)
Finalize(Inherited from Object.)
GetHashCode(Inherited from Object.)
GetType(Inherited from Object.)
MemberwiseClone(Inherited from Object.)
ToString(Inherited from Object.)Top
See Also
Reference
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
- cts
Type: System.Threading.CancellationTokenSource
The CancellationTokenSource used for cancellation.
See Also
Reference
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
NameDescriptionCancellationDisposable()Initializes a new instance of the CancellationDisposable class that uses a new CancellationTokenSource.
CancellationDisposable(CancellationTokenSource)Initializes a new instance of the CancellationDisposable class that uses an existing CancellationTokenSource.Top
See Also
Reference
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 Overload
System.Reactive.Disposables Namespace
CancellationDisposable Properties
Include Protected Members
Include Inherited Members
The CancellationDisposable type exposes the following members.
Properties
NameDescriptionIsDisposedGets a value that indicates whether the object is disposed.
TokenGets the CancellationToken used by this CancellationDisposable.Top
See Also
Reference
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
NameDescriptionCancellationDisposable()Initializes a new instance of the CancellationDisposable class that uses a new CancellationTokenSource.
CancellationDisposable(CancellationTokenSource)Initializes a new instance of the CancellationDisposable class that uses an existing CancellationTokenSource.Top
Properties
NameDescriptionIsDisposedGets a value that indicates whether the object is disposed.
TokenGets the CancellationToken used by this CancellationDisposable.Top
Methods
NameDescriptionDisposeCancels the CancellationTokenSource.
Equals(Inherited from Object.)
Finalize(Inherited from Object.)
GetHashCode(Inherited from Object.)
GetType(Inherited from Object.)
MemberwiseClone(Inherited from Object.)
ToString(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.