Share via


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
Public method ContextDisposable Initializes a new instance of the ContextDisposable class that uses a SynchronizationContext on which to dispose the disposable.

Top

Properties

  Name Description
Public property Context Gets the provided SynchronizationContext.
Public property IsDisposed Gets a value that indicates whether the object is disposed.

Top

Methods

  Name Description
Public method Dispose Disposes the wrapped disposable on the provided SynchronizationContext.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method 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.

See Also

Reference

System.Reactive.Disposables Namespace