BotFrameworkHttpStatusCodeErrorDetectionStrategy.IsTransient 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
若 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)