GC.GetGeneration Method
Silverlight
This member can be used only by trusted applications. If you try to use this member in a partial-trust application, your code will throw a MethodAccessException exception. This member is security-critical, which restricts its use.
Assembly: mscorlib (in mscorlib.dll)
[SECURITY CRITICAL]
Namespace:
SystemRetrieves the generation of a specified object.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- obj
- Type: System.Object
The object to check.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.