A tracking reference to an object, used for reference counting and managing object lifetime.

C# | Visual Basic | Managed C++ |
public interface IDisposableRef<C> : IDisposable where C : class
Public Interface IDisposableRef(Of C As Class) _ Implements IDisposable
generic<typename C> where C : ref class public interface class IDisposableRef : IDisposable

- C
- The class od the object that this reference is pointing to.

All Members | Constructors | Methods | Properties | Fields | Events |
Icon | Member | Description |
---|---|---|
![]() | Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) |
![]() | Target |
Returns the target object that this reference is pointing to.
Implementation ensures that reading this property is thread-safe and nonblocking.
This property cannot be used after the object is disposed.
|