ModelEditingScope.Dispose 方法

定義

中止變更以處置這個物件。Disposes of this object by aborting changes.

多載

Dispose()

中止變更以處置這個物件,除非編輯範圍已經完成或還原。Disposes of this object by aborting changes unless the editing scope has already been completed or reverted.

Dispose(Boolean)

中止變更以處置這個物件。Disposes of this object by aborting changes.

Dispose()

中止變更以處置這個物件,除非編輯範圍已經完成或還原。Disposes of this object by aborting changes unless the editing scope has already been completed or reverted.

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

實作

備註

如果編輯範圍先前已完成或還原,呼叫這個方法不會執行任何動作。If either the editing scope has completed or it has been reverted previously, then calling this method does nothing. 這個方法會Dispose呼叫, 並將輸入參數true設為。This method calls Dispose with the input parameter set to true.

Dispose(Boolean)

中止變更以處置這個物件。Disposes of this object by aborting changes.

protected:
 virtual void Dispose(bool disposing);
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

判斷變更是否應做為復原作業的一部分進行還原,或者因為物件正在進行最終處理。Determines whether the changes should be reverted as part of an undo operation or because the object is being finalized.

備註

如果Revert true設定為, 則會呼叫。 disposingCalls Revert if disposing is set to true.

適用於