IGCHost::Collect Method
Forces a collection to occur for the given generation, regardless of the state of the current garbage collection.
Syntax
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 System Requirements.
Header: GCHost.idl, GCHost.h
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 2.0
See also
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.