Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Requests that the system call the finalizer for the specified object for which SuppressFinalize has previously been called.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Shared Sub ReRegisterForFinalize ( _
obj As Object _
)
public static void ReRegisterForFinalize(
Object obj
)
public:
static void ReRegisterForFinalize(
Object^ obj
)
static member ReRegisterForFinalize :
obj:Object -> unit
public static function ReRegisterForFinalize(
obj : Object
)
Parameters
- obj
Type: System. . :: . .Object
The object that a finalizer must be called for.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | obj is null Nothing nullptr unit a null reference (Nothing in Visual Basic) . |
Remarks
The ReRegisterForFinalize method adds the obj parameter to the list of objects that request finalization before the garbage collector frees the object. The obj parameter must be the caller of this method.
Calling the ReRegisterForFinalize method does not guarantee that the garbage collector will call an object's finalizer.
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 SuppressFinalize method.
A finalizer can use this method to resurrect itself or an object that it references.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.