VpnManager.ErrorCodeNetworkUnknownHost 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 to indicate that the network host isn't known.

[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

Field Value

Value = 0
Attributes

Remarks

An #EXTRA_ERROR_CODE for #CATEGORY_EVENT_NETWORK_ERROR to indicate that the network host isn't known.

This happens when domain name resolution could not resolve an IP address for the specified host. java.net.UnknownHostException

Java documentation for android.net.VpnManager.ERROR_CODE_NETWORK_UNKNOWN_HOST.

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