共用方式為


GpioController.Dispose 方法

定義

多載

Dispose()
Dispose(Boolean)

處置此實例,並關閉與此控制器相關聯的所有開啟針腳。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

實作

適用於

Dispose(Boolean)

處置此實例,並關閉與此控制器相關聯的所有開啟針腳。

protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

參數

disposing
Boolean

True 是表示 處置所有實例,false 表示只處置 Unmanaged 資源

適用於