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.GetGeneration (WeakReference)

Returns the generation in which a weak reference currently resides.

[Visual Basic]
Overloads Public Shared Function GetGeneration( _
   ByVal wo As WeakReference _
) As Integer
[C#]
public static int GetGeneration(
   WeakReference wo
);
[C++]
public: static int GetGeneration(
   WeakReference* wo
);
[JScript]
public static function GetGeneration(
   wo : WeakReference
) : int;

Parameters

wo
The weak reference for which to find the generation.

Return Value

The generation in which wo currently resides.

Exceptions

Exception Type Condition
ArgumentException is thrown if wo has already been collected.

Remarks

To be supplied.

See Also

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