ContextDisposable Properties
Include Protected Members
Include Inherited Members
The ContextDisposable type exposes the following members.
Properties
NameDescriptionContextGets the provided SynchronizationContext.
IsDisposedGets a value that indicates whether the object is disposed.Top
See Also
Reference
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
context
Type: System.Threading.SynchronizationContext
The context to perform disposal on.disposable
Type: System.IDisposable
The disposable whose Dispose operation to run on the given synchronization context.
See Also
Reference
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
NameDescriptionContextDisposableInitializes a new instance of the ContextDisposable class that uses a SynchronizationContext on which to dispose the disposable.Top
Properties
NameDescriptionContextGets the provided SynchronizationContext.
IsDisposedGets a value that indicates whether the object is disposed.Top
Methods
NameDescriptionDisposeDisposes 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.
See Also
Reference
System.Reactive.Disposables Namespace
ContextDisposable Methods
Include Protected Members
Include Inherited Members
The ContextDisposable type exposes the following members.
Methods
NameDescriptionDisposeDisposes 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