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 如果这是暂时性/可重试错误条件

适用于