Creates a disposable reference.

C# | Visual Basic | Managed C++ |
public DisposableRef ( C target, ContextCallback callback, Object context )
Public Sub New ( _ target As C, _ callback As ContextCallback, _ context As Object _ )
public: DisposableRef ( C target, ContextCallback^ callback, Object^ context )

- target (C)
- The target object that this reference is pointing to.
- callback (ContextCallback)
- Callback to invoke when this reference is disposed.
- context (Object)
- Context object that will be passed to the callback.