語言

VpnManager.ErrorCodeNetworkUnknownHost 欄位

定義

警告

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

一個 #EXTRA_ERROR_CODE for #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 for #CATEGORY_EVENT_NETWORK_ERROR 表示網路主機未知。

當網域名稱解析無法解析指定主機的 IP 位址時,就會發生這種情況。 java.net.UnknownHostException

Java 文件 android.net.VpnManager.ERROR_CODE_NETWORK_UNKNOWN_HOST。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於