Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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