Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ICLRGCManager Interface

Provides methods that allow a host to interact with the common language runtime's garbage collection system.


interface ICLRGCManager : IUnknown {
    HRESULT Collect (
        [in] LONG Generation
    );
    HRESULT GetStats (
        [in][out] COR_GC_STATS *pStats
    );
    HRESULT SetGCStartupLimits (
        [in] DWORD SegmentSize, 
        [in] DWORD MaxGen0Size
    );
};

Method Description

ICLRGCManager::Collect Method

Forces a garbage collection for the specified generation.

ICLRGCManager::GetStats Method

Gets a set of current statistics about the garbage collection system.

ICLRGCManager::SetGCStartupLimits Method

Sets the size of a garbage collection segment and the maximum size of the garbage collection system's generation zero.

The common language runtime (CLR) implements its garbage collection mechanism with the managed GC type. For more information about the garbage collection system, see Garbage Collection.

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 2.0

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft