NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

GC.Collect (Int32)

Forces a collection of generations from 0 through a specified generation.

[Visual Basic]
Overloads Public Shared Sub Collect( _
   ByVal generation As Integer _
)
[C#]
public static void Collect(
   int generation
);
[C++]
public: static void Collect(
   int generation
);
[JScript]
public static function Collect(
   generation : int
);

Parameters

generation
The maximum generation to collect.

Exceptions

Exception Type Condition
ArgumentException is thrown if generation is less than 0 or greater than GetMaxGeneration().

See Also

GC Class | GC Members | System Namespace | GC.Collect Overload List