Finalize Method (Disposable)
- Last UpdatedAug 21, 2026
- 1 minute read
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
'Declaration
<SuppressMessageAttribute("Microsoft.Design",
"CA1063:ImplementIDisposableCorrectly",
Justification="Intentional Use.")>
Protected Overrides Sub Finalize()
[SuppressMessage("Microsoft.Design",
"CA1063:ImplementIDisposableCorrectly",
Justification="Intentional Use.")]
protected override void Finalize()
[SuppressMessage("Microsoft.Design",
"CA1063:ImplementIDisposableCorrectly",
Justification="Intentional Use.")]
protected:
void Finalize(); override