ModelEditingScope.CanComplete ModelEditingScope.CanComplete ModelEditingScope.CanComplete ModelEditingScope.CanComplete Method

定義

判斷是否應呼叫 OnComplete(),或者應該還原變更。Determines whether OnComplete() should be called, or whether the change should instead be reverted. 還原的原因可能包括無法從原始檔控制系統簽出檔案以進行修改。Reasons for reverting might include a file cannot be checked out of a source control system for modification.

protected:
 abstract bool CanComplete();
protected abstract bool CanComplete ();
abstract member CanComplete : unit -> bool
Protected MustOverride Function CanComplete () As Boolean

傳回

如果可以完成則為 true,如果應該還原變更則為 falsetrue if completion can occur; false if the change should instead revert.

適用於