Mono Class Library: System.GC Overview | Members

System.GC.ReRegisterForFinalize Method

Requests that the specified object be added to the list of objects that require finalization. [Edit]

public static void ReRegisterForFinalize (object obj)

Parameters

obj
The object to add to the set of objects that require finalization. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionobj is a null reference. [Edit]
ExecutionEngineExceptionThe caller of this method is not the same as the object passed to this method. [Edit]

Remarks

The GC.ReRegisterForFinalize(object) method adds obj to the list of objects that request finalization before the garbage collector frees the object. obj is required to be the caller of this method.

Calling the GC.ReRegisterForFinalize(object) method does not guarantee that the garbage collector will call an object's finalizer.

Note: For more information, see object.Finalize .

Note: By default, all objects that implement finalizers are added to the list of objects that require finalization; however, an object might have already been finalized, or might have disabled finalization by calling the GC.SuppressFinalize(object) method.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0