The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

SingleAssignmentDisposable()s

SingleAssignmentDisposable Methods

Include Protected Members
Include Inherited Members

The SingleAssignmentDisposable type exposes the following members.

Methods

NameDescriptionPublic methodDisposeDisposes the underlying disposable.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

SingleAssignmentDisposable Class

System.Reactive.Disposables Namespace

SingleAssignmentDisposable Class

A SingleAssignmentDisposable only allows a single assignment of its disposable object. If it has already been assigned, attempts to set the underlying object will throw an InvalidOperationException.

Inheritance Hierarchy

System.Object
  System.Reactive.Disposables.SingleAssignmentDisposable

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

Syntax

'Declaration
Public Class SingleAssignmentDisposable _
    Implements IDisposable
'Usage
Dim instance As SingleAssignmentDisposable
public class SingleAssignmentDisposable : IDisposable
public ref class SingleAssignmentDisposable : IDisposable
type SingleAssignmentDisposable =  
    class
        interface IDisposable
    end
public class SingleAssignmentDisposable implements IDisposable

The SingleAssignmentDisposable type exposes the following members.

Constructors

NameDescriptionPublic methodSingleAssignmentDisposableInitializes a new instance if the SingleAssignmentDisposable class.Top

Properties

NameDescriptionPublic propertyDisposableGets or sets the underlying disposable.Public propertyIsDisposedGets a value indicating whether the object is disposed.Top

Methods

NameDescriptionPublic methodDisposeDisposes the underlying disposable.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

SingleAssignmentDisposable Constructor

Initializes a new instance if the SingleAssignmentDisposable class.

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New SingleAssignmentDisposable()
public SingleAssignmentDisposable()
public:
SingleAssignmentDisposable()
new : unit -> SingleAssignmentDisposable
public function SingleAssignmentDisposable()

Remarks

A SingleAssignmentDisposable only allows a single assignment of its disposable object. If it has already been assigned, attempts to set the underlying object will throw an InvalidOperationException.

See Also

Reference

SingleAssignmentDisposable Class

System.Reactive.Disposables Namespace

SingleAssignmentDisposable Properties

Include Protected Members
Include Inherited Members

The SingleAssignmentDisposable type exposes the following members.

Properties

NameDescriptionPublic propertyDisposableGets or sets the underlying disposable.Public propertyIsDisposedGets a value indicating whether the object is disposed.Top

See Also

Reference

SingleAssignmentDisposable Class

System.Reactive.Disposables Namespace