IGCHost::Collect Method

Forces a collection to occur for the given generation, regardless of the state of the current garbage collection.

HRESULT Collect (
        [in] LONG Generation
);

Parameters

  • Generation
    [in] The generation on which to perform the garbage collection. A value of -1 indicates that all generations will undergo a garbage collection.

Requirements

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

Header: GCHost.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 2.0

See Also

Concepts

IGCHost Interface