Lenguaje

NetworkException.IsImmediatelyRetryable Propiedad

Definición

Devuelve true si volver a intentar esta solicitud inmediatamente podría realizarse correctamente; de lo contrario, false.

public abstract bool IsImmediatelyRetryable { [Android.Runtime.Register("isImmediatelyRetryable", "()Z", "GetIsImmediatelyRetryableHandler", ApiSince=34)] get; }
[<get: Android.Runtime.Register("isImmediatelyRetryable", "()Z", "GetIsImmediatelyRetryableHandler", ApiSince=34)>]
member this.IsImmediatelyRetryable : bool

Valor de propiedad

True si volver a intentar esta solicitud inmediatamente podría realizarse correctamente; de lo contrario, false.

Atributos

Comentarios

Devuelve true si volver a intentar esta solicitud inmediatamente podría realizarse correctamente; de lo contrario, false. Por ejemplo, devuelve true cuando getErrorCode() devuelve ERROR_NETWORK_CHANGED porque probar la solicitud podría realizarse correctamente con la nueva configuración de red, pero false cuando getErrorCode() devuelve ERROR_INTERNET_DISCONNECTED porque reintentar la solicitud inmediatamente se producirá el mismo error (en su lugar, se debe retrasar el reintento hasta que el dispositivo recupere la conectividad de red).

Referencia de Android para android.net.http.NetworkException.isImmediatelyRetryable.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a