Base class for dispatch objects.
public abstract class DispatchObject : IDisposable, ObjCRuntime.INativeObject
type DispatchObject = class interface INativeObject interface IDisposable
Dispatch objects share functions for coordinating memory management, suspension, cancellation and con- text pointers. While all dispatch objects are retainable, not all objects support suspension, context pointers or finalizers (currently only queues and sources support these additional interfaces).
The invocation of blocks on dispatch queues or dispatch sources may be suspended or resumed with the
Important: suspension applies to all aspects of the dispatch
object life cycle, including the finalizer function and
cancellation handler. Therefore it is important to balance
Dispatch queues and sources support supplemental context pointers. The value of the context point may
be retrieved and updated with the
The result of getting or setting the context of an object that is not a dispatch queue or a dispatch source is undefined.
|Handle||(Inherited from NativeObject)|
|Dispose()||(Inherited from NativeObject)|
|Dispose(Boolean)||(Inherited from NativeObject)|
Returns the hashcode for this object
|InitializeHandle(IntPtr)||(Inherited from NativeObject)|