BotFrameworkHttpStatusCodeErrorDetectionStrategy.IsTransient 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果 HttpRequestExceptionWithStatus 例外狀況中的狀態碼為 RequestTimeout、TooManyRequests、NotFound 或大於或等於 500 且 NotImplemented (501) 或 HttpVersionNotSupported (505) ,則會傳回 true。
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
要檢查的例外狀況。
傳回
如果例外狀況為暫時性,則為 True,否則為 false。
實作
Microsoft.Rest.TransientFaultHandling.ITransientErrorDetectionStrategy.IsTransient(System.Exception)