Udostępnij za pośrednictwem


VpnManager.ErrorCodeNetworkLost Field

Definition

Caution

This constant will be removed in the future version. Use Android.Net.VpnErrorCode enum directly instead of this field.

An #EXTRA_ERROR_CODE for #CATEGORY_EVENT_NETWORK_ERROR indicating that network connectivity was lost.

[Android.Runtime.Register("ERROR_CODE_NETWORK_LOST", ApiSince=33)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Net.VpnErrorCode enum directly instead of this field.", true)]
public const Android.Net.VpnErrorCode ErrorCodeNetworkLost = 2;
[<Android.Runtime.Register("ERROR_CODE_NETWORK_LOST", ApiSince=33)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Net.VpnErrorCode enum directly instead of this field.", true)>]
val mutable ErrorCodeNetworkLost : Android.Net.VpnErrorCode

Field Value

Value = 2
Attributes

Remarks

An #EXTRA_ERROR_CODE for #CATEGORY_EVENT_NETWORK_ERROR indicating that network connectivity was lost.

The most common reason for this error is that the underlying network was disconnected, android.net.ipsec.ike.exceptions.IkeNetworkLostException.

Java documentation for android.net.VpnManager.ERROR_CODE_NETWORK_LOST.

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