MessageQueueEnumerator.Finalize MessageQueueEnumerator.Finalize MessageQueueEnumerator.Finalize MessageQueueEnumerator.Finalize Method

定義

釋出佇列所持有的資源。Releases the resources held by the queue.

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

備註

這個方法會覆寫 Finalize()This method overrides Finalize(). 應用程式程式碼不應該呼叫這個方法。物件的 Finalize 方法會自動叫用記憶體回收期間,除非呼叫已停用記憶體回收行程的最終處理GC.SuppressFinalize方法。Application 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.

如需詳細資訊,請參閱 < Finalize 方法和解構函式清除 Unmanaged 資源總,並覆寫 Finalize 方法For more information, see Finalize Methods and Destructors, Cleaning Up Unmanaged Resources, and Overriding the Finalize Method.

適用於