你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ActorRemotingExceptionHandler.IExceptionHandler.TryHandleException 方法

定义

检查异常并确定如何处理该异常的方法。

bool IExceptionHandler.TryHandleException (Microsoft.ServiceFabric.Services.Communication.Client.ExceptionInformation exceptionInformation, Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings retrySettings, out Microsoft.ServiceFabric.Services.Communication.Client.ExceptionHandlingResult result);
abstract member Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler.TryHandleException : Microsoft.ServiceFabric.Services.Communication.Client.ExceptionInformation * Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings * ExceptionHandlingResult -> bool
override this.Microsoft.ServiceFabric.Services.Communication.Client.IExceptionHandler.TryHandleException : Microsoft.ServiceFabric.Services.Communication.Client.ExceptionInformation * Microsoft.ServiceFabric.Services.Communication.Client.OperationRetrySettings * ExceptionHandlingResult -> bool
Function TryHandleException (exceptionInformation As ExceptionInformation, retrySettings As OperationRetrySettings, ByRef result As ExceptionHandlingResult) As Boolean Implements IExceptionHandler.TryHandleException

参数

exceptionInformation
ExceptionInformation

有关异常的信息

retrySettings
OperationRetrySettings

操作重试首选项。

result
ExceptionHandlingResult

异常处理的结果

返回

如果处理异常,则为 true;否则为 false

实现

适用于