Język

NetworkException.IsImmediatelyRetryable Property

Definition

Returns true if retrying this request right away might succeed, false otherwise.

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

Property Value

true if retrying this request right away might succeed, false otherwise.

Attributes

Remarks

Returns true if retrying this request right away might succeed, false otherwise. For example returns true when getErrorCode() returns ERROR_NETWORK_CHANGED because trying the request might succeed using the new network configuration, but false when getErrorCode() returns ERROR_INTERNET_DISCONNECTED because retrying the request right away will encounter the same failure (instead retrying should be delayed until device regains network connectivity).

Android reference for android.net.http.NetworkException.isImmediatelyRetryable.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to