The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
GC::GetGeneration Method
.NET Framework (current version)
Returns the current generation number of an object.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | GetGeneration(Object^) | Returns the current generation number of the specified object. |
![]() ![]() | GetGeneration(WeakReference^) | Returns the current generation number of the target of a specified weak reference. |
Show:

