Documentation for a minimal subset of the QSM API
DisposableRef<(Of <C>)> Class
Namespaces > QS.CMS.Base3 > DisposableRef<(Of C>)
A disposable reference to an object, used for reference counting. Methods of this class are thread-safe and nonblocking.
Syntax
C#Visual BasicManaged C++
public sealed class DisposableRef<C> : IDisposableRef<C>, IDisposable where C : class
Public NotInheritable Class DisposableRef(Of C As Class) _
	Implements IDisposableRef(Of C), IDisposable
generic<typename C>
where C : ref class
public ref class DisposableRef sealed : IDisposableRef<C>, IDisposable
Type Parameters
C
Class of the object that the reference will point to.
Members
All MembersConstructorsMethodsPropertiesFieldsEvents



IconMemberDescription
DisposableRef<(Of C>)New(C, ContextCallback, Object)
Creates a disposable reference.

Dispose()
Disposes the reference and invokes the callback given in the constructor. This call is nonblocking. The callback can access the target object.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Target
Returns the target object that this reference is pointing to. Reading this property is nonblocking. This property cannot be used after the object has been disposed. It is legal to read this property from the callback.

ToString()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
DisposableRef<(Of C>)

Assembly: QuickSilver_1 (Module: QuickSilver_1) Version: 1.0.0.0