ModelEditingScope.OnException(Exception) ModelEditingScope.OnException(Exception) ModelEditingScope.OnException(Exception) Method

定義

處理例外狀況。Handles an exception.

protected:
 abstract bool OnException(Exception ^ exception);
protected abstract bool OnException (Exception exception);
abstract member OnException : Exception -> bool

參數

exception
Exception Exception Exception

要處理的例外狀況。The exception to handle.

傳回

如果已處理例外狀況則為 true,否則為 falsetrue if the exception is handled; otherwise, false.

備註

CompleteRevert 方法會呼叫這個方法來處理例外狀況。The Complete and Revert methods call this method to handle exceptions.

適用於