Language
Edit

IDataConsumer.Detach Method

Definition

Detach this data consumer and prepare to return to object pool.

public void Detach();
abstract member Detach : unit -> unit
Public Sub Detach ()

Remarks

Detach from external resources before it is disabled.

This is typically not called by application level code. It is public to allow DataConsumerCollection and similar aggregate consumers to clean up any spawned child data consumers.

The AttachDataConsumer() function allows derived classes to perform additional detach tasks.

Applies to