ToBase64Transform.IDisposable.Dispose ToBase64Transform.IDisposable.Dispose ToBase64Transform.IDisposable.Dispose Method


釋放由 ToBase64Transform 使用的 Unmanaged 資源。Releases the unmanaged resources used by the ToBase64Transform.

 virtual void System.IDisposable.Dispose() = IDisposable::Dispose;
void IDisposable.Dispose ();
Sub Dispose () Implements IDisposable.Dispose



這個方法會呼叫公用Dispose()方法和Finalize方法。This method is called by the public Dispose() method and the Finalize method. Dispose() 叫用受保護Dispose(Boolean)disposing 參數設定為方法trueDispose() invokes the protected Dispose(Boolean) method with the disposing parameter set to true. Finalize 會透過將處置設定為 Dispose 而叫用 falseFinalize invokes Dispose with disposing set to false.

disposing 參數為 true 時,這個方法會釋放此 ToBase64Transform 參考之任何 Managed 物件掌握的所有資源。When the disposing parameter is true, this method releases all resources held by any managed objects that this ToBase64Transform references. 這個方法會叫用每個參考物件的 Dispose() 方法。This method invokes the Dispose() method of each referenced object.

繼承者注意事項︰Notes to Inheritors:

Dispose 可以被其他物件呼叫多次。Dispose can be called multiple times by other objects. 當覆寫Dispose(Boolean),請小心不要參考先前處置呼叫中的物件DisposeWhen overriding Dispose(Boolean), be careful not to reference objects that have been previously disposed in an earlier call to Dispose. 如需有關如何實作Dispose(Boolean),請參閱 < 實作 Dispose 方法For more information about how to implement Dispose(Boolean), see Implementing a Dispose Method.

如需詳細資訊DisposeFinalize,請參閱清除 Unmanaged 資源總覆寫 Finalize 方法For more information about Dispose and Finalize, see Cleaning Up Unmanaged Resources and Overriding the Finalize Method.