共用方式為


AzureStorageUtils.IsRetriableHttpError(HttpStatusCode, String) 方法

定義

如果在暫時性/可重試的錯誤狀況中傳回指定的 HTTP 狀態/錯誤碼,則傳回 true

public static bool IsRetriableHttpError (System.Net.HttpStatusCode httpStatusCode, string restStatusCode);
static member IsRetriableHttpError : System.Net.HttpStatusCode * string -> bool
Public Shared Function IsRetriableHttpError (httpStatusCode As HttpStatusCode, restStatusCode As String) As Boolean

參數

httpStatusCode
HttpStatusCode

HTTP 錯誤碼值

restStatusCode
String

REST 錯誤碼值

傳回

true 如果這是暫時性/可重試的錯誤狀況

適用於