语言

VpnManager.ErrorCodeNetworkUnknownHost 字段

定义

注意

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_UNKNOWN_HOST", 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 ErrorCodeNetworkUnknownHost = 0;
[<Android.Runtime.Register("ERROR_CODE_NETWORK_UNKNOWN_HOST", 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 ErrorCodeNetworkUnknownHost : Android.Net.VpnErrorCode

字段值

Value = 0
属性

注解

用于#EXTRA_ERROR_CODE#CATEGORY_EVENT_NETWORK_ERROR指示网络主机未知。

当域名解析无法解析指定主机的 IP 地址时,会出现这种情况。 java.net.UnknownHostException

Java文档android.net.VpnManager.ERROR_CODE_NETWORK_UNKNOWN_HOST。

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

适用于