ICorProfilerInfo10::EnumerateObjectReferences method

Given an ObjectID, callback and clientData, enumerates each object reference (if any).

Syntax

HRESULT EnumerateObjectReferences( [in] ObjectID objectId,
                                   [in] ObjectReferenceCallback callback,
                                   [in] void* clientData);

Parameters

objectId
[in] The object to enumerate references on.

callback
[in] The function that will be called with the references for the object.

clientData
[in] Profiler-provided data to pass to the callback function.

Remarks

The EnumerateObjectReferences method is similar to ObjectReferences, except that it walks the references on demand for the profiler instead of pre-allocating an array to store the references.

Requirements

Platforms: See .NET supported operating systems.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Versions: Available since .NET Core 3.0

See also