共用方式為


NoRouteToHostException 建構函式

定義

多載

NoRouteToHostException()

建構沒有詳細訊息的新 NoRouteToHostException。

NoRouteToHostException(String)

使用指定的詳細數據訊息建構新的 NoRouteToHostException,以了解無法連線到遠端主機的原因。

NoRouteToHostException(IntPtr, JniHandleOwnership)

建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。

NoRouteToHostException()

建構沒有詳細訊息的新 NoRouteToHostException。

[Android.Runtime.Register(".ctor", "()V", "")]
public NoRouteToHostException ();
屬性

備註

建構沒有詳細訊息的新 NoRouteToHostException。

java.net.NoRouteToHostException.NoRouteToHostException()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

NoRouteToHostException(String)

使用指定的詳細數據訊息建構新的 NoRouteToHostException,以了解無法連線到遠端主機的原因。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public NoRouteToHostException (string? msg);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Net.NoRouteToHostException : string -> Java.Net.NoRouteToHostException

參數

msg
String

詳細資料訊息

屬性

備註

使用指定的詳細數據訊息建構新的 NoRouteToHostException,以了解無法連線到遠端主機的原因。 詳細訊息是字串,可提供此錯誤的特定描述。

java.net.NoRouteToHostException.NoRouteToHostException(java.lang.String)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

NoRouteToHostException(IntPtr, JniHandleOwnership)

建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。

protected NoRouteToHostException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Net.NoRouteToHostException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Net.NoRouteToHostException

參數

javaReference
IntPtr

nativeint

IntPtr,包含 Java Native Interface (JNI) 對象參考。

transfer
JniHandleOwnership

JniHandleOwnership,指出如何處理javaReference

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於