ContractHandle.Finalize 方法

定义

释放与 ContractHandle 实例关联的资源。Releases the resources associated with the ContractHandle instance.

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

注解

此方法重写 Object.FinalizeThis method overrides Object.Finalize. 应用程序代码不应调用此方法; Finalize 在垃圾回收过程中会自动调用对象的方法,除非已通过调用方法禁用了垃圾回收器终止 GC.SuppressFinalizeApplication code should not call this method; an object's Finalize method is automatically invoked during garbage collection, unless finalization by the garbage collector has been disabled by a call to the GC.SuppressFinalize method.

当垃圾回收器调用此方法时,此方法将调用 Dispose(Boolean) 方法。When called by the garbage collector, this method calls the Dispose(Boolean) method.

适用于