語言

SimPhonebookContract.SimRecords.GetContentUri(Int32, Int32) 方法

定義

回傳指定 SIM 卡上指定基本檔案的內容 Uri。

[Android.Runtime.Register("getContentUri", "(II)Landroid/net/Uri;", "", ApiSince=31)]
public static Android.Net.Uri GetContentUri(int subscriptionId, int efType);
[<Android.Runtime.Register("getContentUri", "(II)Landroid/net/Uri;", "", ApiSince=31)>]
static member GetContentUri : int * int -> Android.Net.Uri

參數

subscriptionId
Int32

這位 Uri 將提及的 SIM 卡訂閱 ID

efType
Int32

這個 Uri 將參考的 SIM 卡基本檔案

傳回

Uri

指定訂閱與基本檔案中記錄集合的 URI。

屬性

備註

回傳指定 SIM 卡上指定基本檔案的內容 Uri。

當查詢時,Uri 會回傳指定 SIM 卡上該基本檔案中的所有聯絡紀錄。 可用的訂閱Id和efTypes可透過查詢 ElementaryFiles#CONTENT_URI發現。

如果沒有包含該訂閱 ID 的 SIM 卡,或該 SIM 卡不支援指定的實體檔案,則所有操作都會拋出一個 IllegalArgumentException。

Java 文件 android.provider.SimPhonebookContract.SimRecords.getContentUri(int, int)。

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

適用於