Contextdisposable

ContextDisposable Properties

Include Protected Members
Include Inherited Members

The ContextDisposable type exposes the following members.

Properties

NameDescriptionPublic propertyContextGets the provided SynchronizationContext.Public propertyIsDisposedGets a value that indicates whether the object is disposed.Top

See Also

Reference

ContextDisposable Class

System.Reactive.Disposables Namespace

ContextDisposable Constructor

Initializes a new instance of the ContextDisposable class that uses a SynchronizationContext on which to dispose the disposable.

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

Syntax

'Declaration
Public Sub New ( _
    context As SynchronizationContext, _
    disposable As IDisposable _
)
'Usage
Dim context As SynchronizationContext
Dim disposable As IDisposable

Dim instance As New ContextDisposable(context, _
    disposable)
public ContextDisposable(
    SynchronizationContext context,
    IDisposable disposable
)
public:
ContextDisposable(
    SynchronizationContext^ context, 
    IDisposable^ disposable
)
new : 
        context:SynchronizationContext * 
        disposable:IDisposable -> ContextDisposable
public function ContextDisposable(
    context : SynchronizationContext, 
    disposable : IDisposable
)

Parameters

See Also

Reference

ContextDisposable Class

System.Reactive.Disposables Namespace

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

NameDescriptionPublic methodContextDisposableInitializes a new instance of the ContextDisposable class that uses a SynchronizationContext on which to dispose the disposable.Top

Properties

NameDescriptionPublic propertyContextGets the provided SynchronizationContext.Public propertyIsDisposedGets a value that indicates whether the object is disposed.Top

Methods

NameDescriptionPublic methodDisposeDisposes the wrapped disposable on the provided SynchronizationContext.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

ContextDisposable Methods

Include Protected Members
Include Inherited Members

The ContextDisposable type exposes the following members.

Methods

NameDescriptionPublic methodDisposeDisposes the wrapped disposable on the provided SynchronizationContext.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

ContextDisposable Class

System.Reactive.Disposables Namespace