Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
);
};
Methods
Method |
Description |
|---|---|
Forces a garbage collection for the specified generation. |
|
Gets a set of current statistics about the garbage collection system. |
|
Sets the size of a garbage collection segment and the maximum size of the garbage collection system's generation zero. |
Remarks
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.
Requirements
Platforms: See .NET Framework System Requirements.
Header: MSCorEE.idl
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0