ModelEditingScope.Dispose ModelEditingScope.Dispose ModelEditingScope.Dispose ModelEditingScope.Dispose Method

定義

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

多載

Dispose() Dispose() Dispose() Dispose()

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

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

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

Dispose() Dispose() Dispose() 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輸入參數設定為trueThis method calls Dispose with the input parameter set to true.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) 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 Boolean Boolean Boolean

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

備註

呼叫Revert如果disposing設定為trueCalls Revert if disposing is set to true.

適用於