語言

BotFrameworkHttpStatusCodeErrorDetectionStrategy.IsTransient 方法

定義

若 HttpRequestExceptionWithStatus 例外中的狀態碼為 RequestTimeout、TooManyRequests、NotFound 或大於 500,且非 NotImplemented (501) 或 HttpVersionNotSupported (505) 時,則 NotTrue。

public bool IsTransient(Exception ex);
abstract member IsTransient : Exception -> bool
override this.IsTransient : Exception -> bool
Public Function IsTransient (ex As Exception) As Boolean

參數

ex
Exception

例外檢查。

傳回

若例外為短暫,則為真,否則為假。

實作

Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy.IsTransient(System.Exception)

適用於