Io.finalize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Closes the file and, if data was written, flushes the file buffers to disk.
public:
override void finalize();
public override void finalize ();
override this.finalize : unit -> unit
Public Overrides Sub finalize ()
Remarks
The object is typically finalized by leaving the scope, so finalize is typically not called directly. Written output will not be valid before the object is finalized.