Gets the number of bytes that survived the last full, blocking garbage collection and that are referenced by the current application domain.
HRESULT STDMETHODCALLTYPE GetCurrentSurvived( [in] DWORD dwAppDomainId, [out] ULONGLONG *pAppDomainBytesSurvived, [out] ULONGLONG *pTotalBytesSurvived);
Statistics are updated only after a full, blocking garbage collection; that is, a collection that includes all generations and that stops the application while collection occurs. For example, the GC.Collect() method overload performs a full, blocking collection. Concurrent garbage collection occurs in the background and does not block the application.
The GetCurrentSurvived method is the unmanaged equivalent of the managed AppDomain.MonitoringSurvivedMemorySize property.
Platforms: See .NET Framework System Requirements.
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: 4.5, 4