Gets the total size, in bytes, of all memory allocations that have been made by the application domain since it was created, without subtracting memory that has been garbage-collected.
HRESULT GetCurrentAllocated([in] DWORD dwAppDomainId, [out] ULONGLONG* pBytesAllocated);
[in] The ID of the requested application domain.
[out] A pointer to the total size of all memory allocations.
This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.
|S_OK||The method completed successfully.|
|COR_E_APPDOMAINUNLOADED||The application domain has been unloaded or does not exist.|
This method is the unmanaged equivalent of the managed System.AppDomain.MonitoringTotalAllocatedMemorySize property.
Platforms: See System Requirements.
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 4