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.
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: See .NET Framework System Requirements.
Header: GCHost.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