若要檢視英文版的文章,請選取 [原文] 核取方塊。您也可以將滑鼠指標移到文字上,即可在快顯視窗顯示英文原文。
譯文
原文
建議使用 Visual Studio 2017

RadioButton.Dispose 方法 (Boolean)

釋放 RadioButton 所使用的 Unmanaged 資源,並選擇性釋放 Managed 資源。

命名空間:  Microsoft.Office.Tools.Excel.Controls
組件:  Microsoft.Office.Tools.Excel.v4.0.Utilities (在 Microsoft.Office.Tools.Excel.v4.0.Utilities.dll 中)

protected override void Dispose(
	bool disposing
)

參數

disposing
類型:System.Boolean
true 表示會同時釋放 Managed 和 Unmanaged 資源,false 則表示只釋放 Unmanaged 資源。

This method is called by the public Dispose method and the Finalize method. Dispose() invokes the protected Dispose(Boolean) method with the disposing parameter set to true. Finalize invokes Dispose with disposing set to false.

When the disposing parameter is true, this method releases all resources held by any managed objects that this RadioButton references. This method invokes the Dispose() method of each referenced object.

繼承者注意事項

Dispose can be called multiple times by other objects. When overriding Dispose(Boolean), be careful not to reference objects that have been previously disposed of in an earlier call to Dispose. For more information about how to implement Dispose(Boolean), see 實作 Dispose 方法.

For more information about Dispose and Finalize, see 清除 Unmanaged 資源.

顯示: