Singleassignmentdisposable

SingleAssignmentDisposable.Disposable Property

Gets or sets the underlying disposable.

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

Syntax

'Declaration
Public Property Disposable As IDisposable
    Get
    Set
'Usage
Dim instance As SingleAssignmentDisposable
Dim value As IDisposable

value = instance.Disposable

instance.Disposable = value
public IDisposable Disposable { get; set; }
public:
property IDisposable^ Disposable {
    IDisposable^ get ();
    void set (IDisposable^ value);
}
member Disposable : IDisposable with get, set
function get Disposable () : IDisposable
function set Disposable (value : IDisposable)

Property Value

Type: System.IDisposable
Returns the underlying IDisposable.

Remarks

If the SingleAssignmentDisposable has already been assigned, then attempts to set the underlying object will throw an InvalidOperationException.

See Also

Reference

SingleAssignmentDisposable Class

System.Reactive.Disposables Namespace