ICorProfilerInfo4::GetObjectSize2 Method
Returns the size of a specified object. Replaces the ICorProfilerInfo::GetObjectSize method by reporting sizes of objects that are larger than what can be expressed in a ULONG
.
Syntax
HRESULT GetObjectSize2(
[in] ObjectID objectId,
[out] SIZE_T *pcSize);
Parameters
objectId
[in] The ID of the object.
pcSize
[out] A pointer to the object's size, in bytes.
Remarks
Different objects of the same types often have the same size. However, some types, such as arrays or strings, may have a different size for each object.
Requirements
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: Available since 4.5
See also
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.