Collect 方法
MSDN Home
MSDN
MSDN Library
.NET 开发
.NET Framework 3.5
.NET Framework
.NET Framework 类库
System 命名空间
GC 类
GC 方法
Collect 方法
Collect 方法
Collect 方法 (Int32)
Collect 方法 (Int32, GCCollectio ...
GC 方法
AddMemoryPressure 方法
CancelFullGCNotification 方法
Collect 方法
CollectionCount 方法
GetGeneration 方法
GetTotalMemory 方法
KeepAlive 方法
RegisterForFullGCNotification ...
RemoveMemoryPressure 方法
ReRegisterForFinalize 方法
SuppressFinalize 方法
WaitForFullGCApproach 方法
WaitForFullGCComplete 方法
WaitForPendingFinalizers 方法
切换视图 :
经典视图
轻量型视图
无脚本视图
反馈
.NET Framework 类库
GC
.
.
::
.
Collect 方法
更新:2007 年 11 月
强制进行垃圾回收。
重载列表
名称
说明
Collect
()
()
()
强制对所有代进行即时垃圾回收。
Collect(Int32)
强制对零代到指定代进行即时垃圾回收。
Collect(Int32, GCCollectionMode)
强制在
GCCollectionMode
值所指定的时间对零代到指定代进行垃圾回收。
页首
另请参见
参考
GC 类
GC 成员
System 命名空间
标记 :