Notifies the profiler about the number of instances of each specified class that have been created since the most recent garbage collection.
HRESULT ObjectsAllocatedByClass( [in] ULONG cClassCount, [in, size_is(cClassCount)] ClassID classIds , [in, size_is(cClassCount)] ULONG cObjects );
The classIds and cObjects arrays are parallel arrays. For example, classIds[i] and cObjects[i] reference the same class. If no instance of a class has been created since the previous garbage collection, the class is omitted. The ObjectsAllocatedByClass callback will not report objects allocated in the large object heap.
The numbers reported by ObjectsAllocatedByClass are only estimates. For exact counts, use ICorProfilerCallback::ObjectAllocated.
The classIds array may contain one or more null entries if the corresponding cObjects array has types that are unloading.
Platforms: See .NET Framework System Requirements.
Header: CorProf.idl, CorProf.h
.NET Framework Versions: 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0