语言

VpnManager.ErrorCodeNetworkLost 字段

定义

注意

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

指示网络连接已丢失的一个#EXTRA_ERROR_CODE。#CATEGORY_EVENT_NETWORK_ERROR

[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

字段值

Value = 2
属性

注解

指示网络连接已丢失的一个#EXTRA_ERROR_CODE。#CATEGORY_EVENT_NETWORK_ERROR

此错误的最常见原因是基础网络已断开连接。 android.net.ipsec.ike.exceptions.IkeNetworkLostException

Java文档android.net.VpnManager.ERROR_CODE_NETWORK_LOST。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于