FileStream.Finalize FileStream.Finalize FileStream.Finalize FileStream.Finalize Method

定义

确保垃圾回收器回收 FileStream 时释放资源并执行其他清理操作。Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the FileStream.

!FileStream ()
~FileStream ();
override this.Finalize : unit -> unit
Finalize ()

注解

垃圾回收器调用Finalize何时可以完成而当前对象。The garbage collector calls Finalize when the current object is ready to be finalized. Finalize 关闭FileStreamFinalize closes the FileStream.

适用于

另请参阅