語言

AppSearchException 建構函式

定義

多載

名稱 Description
AppSearchException(Int32)

初始化 an AppSearchException 但沒有訊息。

AppSearchException(Int32, String)

初始化 並 AppSearchException 附帶結果代碼與訊息。

AppSearchException(IntPtr, JniHandleOwnership)
AppSearchException(Int32, String, Throwable)

初始化 並 AppSearchException 以結果碼、訊息與原因。

AppSearchException(Int32)

初始化 an AppSearchException 但沒有訊息。

[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=31)]
public AppSearchException(int resultCode);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=31)>]
new Android.App.AppSearch.Exceptions.AppSearchException : int -> Android.App.AppSearch.Exceptions.AppSearchException

參數

resultCode
Int32

其中一個常數在 中被 AppSearchResult#getResultCode記錄。

屬性

備註

初始化 an AppSearchException 但沒有訊息。

Java 文件 android.app.appsearch.exceptions.AppSearchException.AppSearchException(int)。

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

適用於

AppSearchException(Int32, String)

初始化 並 AppSearchException 附帶結果代碼與訊息。

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "", ApiSince=31)]
public AppSearchException(int resultCode, string? message);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "", ApiSince=31)>]
new Android.App.AppSearch.Exceptions.AppSearchException : int * string -> Android.App.AppSearch.Exceptions.AppSearchException

參數

resultCode
Int32

其中一個常數在 中被 AppSearchResult#getResultCode記錄。

message
String

詳細訊息(該訊息會被方法保存以備後續 #getMessage() 檢索)。

屬性

備註

初始化 並 AppSearchException 附帶結果代碼與訊息。

Java 文件 android.app.appsearch.exceptions.AppSearchException.AppSearchException(int, java.lang.String)。

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

適用於

AppSearchException(IntPtr, JniHandleOwnership)

protected AppSearchException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.AppSearch.Exceptions.AppSearchException : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.AppSearch.Exceptions.AppSearchException

參數

javaReference
IntPtr

nativeint

適用於

AppSearchException(Int32, String, Throwable)

初始化 並 AppSearchException 以結果碼、訊息與原因。

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=31)]
public AppSearchException(int resultCode, string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=31)>]
new Android.App.AppSearch.Exceptions.AppSearchException : int * string * Java.Lang.Throwable -> Android.App.AppSearch.Exceptions.AppSearchException

參數

resultCode
Int32

其中一個常數在 中被 AppSearchResult#getResultCode記錄。

message
String

詳細訊息(該訊息會被方法保存以備後續 #getMessage() 檢索)。

cause
Throwable

原因(會被方法保存以備後續檢索 #getCause() )。 (允許空值,表示原因不存在或未知。)

屬性

備註

初始化 並 AppSearchException 以結果碼、訊息與原因。

Java 文件 android.app.appsearch.exceptions.AppSearchException.AppSearchException(int, java.lang.String, java.lang.Throwable)。

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

適用於