ContextDisposable Class
Represents a thread-affine IDisposable.
Inheritance Hierarchy
System.Object
System.Reactive.Disposables.ContextDisposable
Namespace: System.Reactive.Disposables
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
Public NotInheritable Class ContextDisposable _
Implements IDisposable
'Usage
Dim instance As ContextDisposable
public sealed class ContextDisposable : IDisposable
public ref class ContextDisposable sealed : IDisposable
[<SealedAttribute>]
type ContextDisposable =
class
interface IDisposable
end
public final class ContextDisposable implements IDisposable
The ContextDisposable type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ContextDisposable | Initializes a new instance of the ContextDisposable class that uses a SynchronizationContext on which to dispose the disposable. |
Top
Properties
Name | Description | |
---|---|---|
Context | Gets the provided SynchronizationContext. | |
IsDisposed | Gets a value that indicates whether the object is disposed. |
Top
Methods
Name | Description | |
---|---|---|
Dispose | Disposes the wrapped disposable on the provided SynchronizationContext. | |
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.