DataService<T>.HandleException(HandleExceptionArgs) 方法

定義

在處理要求引發例外狀況時呼叫。

protected:
 virtual void HandleException(System::Data::Services::HandleExceptionArgs ^ args);
protected virtual void HandleException (System.Data.Services.HandleExceptionArgs args);
abstract member HandleException : System.Data.Services.HandleExceptionArgs -> unit
override this.HandleException : System.Data.Services.HandleExceptionArgs -> unit
Protected Overridable Sub HandleException (args As HandleExceptionArgs)

參數

args
HandleExceptionArgs

例外狀況引數。

備註

資料服務可能會修改 args 執行個體,以自訂回應中傳送例外狀況的方式。

適用於