Share via


ContentUris 類別

定義

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

[Android.Runtime.Register("android/content/ContentUris", DoNotGenerateAcw=true)]
public class ContentUris : Java.Lang.Object
[<Android.Runtime.Register("android/content/ContentUris", DoNotGenerateAcw=true)>]
type ContentUris = class
    inherit Object
繼承
ContentUris
屬性

備註

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

內容 URI 具有語法

content://<em>authority</em>/<em>path</em>/<em>id</em>

<dl>dt/dt>>content:<< dd> URI 的配置部分。< 這一律會設定為 android.content.ContentResolver#SCHEME_CONTENT ContentResolver.SCHEME_CONTENT (值 content://) 。 </dd><dt<>em>authority</em></dt><dd> 識別整個內容提供者的字串。 提供者的所有內容 URI 都是以這個字串開頭。 為了保證唯一的授權單位,提供者應考慮使用與提供者類別套件標識符相同的授權單位。 </dd><dt<>em>path</em<>/dt<>dd> 零或多個區段,以正斜線分隔 () / ,可識別提供者數據的一些子集。 大部分的提供者會使用路徑元件來識別個別數據表。 路徑中的個別區段通常稱為 &商;目錄&商;雖然它們不會參考檔案目錄。 路徑中最右邊的區段通常稱為 &商;twig"</Dd><dt><em id<>/em></dt><dd> 前一個路徑部分所識別數據子集中單一數據列的唯一數值標識符。 大部分的提供者都會辨識包含標識碼部分的內容 URI,並提供特殊處理。 包含名為 _ID 之數據行的數據表通常預期標識碼部分是該數據行的特定值。 </dd></dl>

android.content.ContentUrisJava 檔。

此頁面的部分是根據 原始碼專案所建立和共用的工作進行修改,並根據 中所述的詞彙使用。

建構函式

ContentUris()
ContentUris(IntPtr, JniHandleOwnership)

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

屬性

Class

傳回這個 Object的運行時間類別。

(繼承來源 Object)
Handle

基礎Android實例的句柄。

(繼承來源 Object)
JniIdentityHashCode

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)
JniPeerMembers

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

PeerReference

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)
ThresholdClass

此 API 支援 Mono for Android 基礎結構,並不適合直接從您的程式代碼使用。

ThresholdType

此 API 支援 Mono for Android 基礎結構,並不適合直接從您的程式代碼使用。

方法

AppendId(Uri+Builder, Int64)

將指定的識別碼附加至路徑結尾。

Clone()

建立並傳回這個 對象的複本。

(繼承來源 Object)
Dispose()

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)
Dispose(Boolean)

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)
Equals(Object)

指出其他物件是否「等於」這個物件。

(繼承來源 Object)
GetHashCode()

傳回此物件的雜湊碼值。

(繼承來源 Object)
JavaFinalize()

當垃圾收集判斷對象沒有其他參考時,由物件上的垃圾收集行程呼叫。

(繼承來源 Object)
Notify()

喚醒正在等候此物件的監視器的單一線程。

(繼承來源 Object)
NotifyAll()

喚醒正在等候此物件監視器的所有線程。

(繼承來源 Object)
ParseId(Uri)

將最後一個路徑區段轉換為long。

RemoveId(Uri)

從路徑結尾移除任何標識碼。

SetHandle(IntPtr, JniHandleOwnership)

設定 Handle 屬性。

(繼承來源 Object)
ToArray<T>()

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)
ToString()

傳回物件的字串表示。

(繼承來源 Object)
UnregisterFromRuntime()

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)
Wait()

讓目前的線程等到喚醒為止,通常是藉由 <em>notified</em> 或 <em>interrupted</em> 來喚醒。

(繼承來源 Object)
Wait(Int64)

讓目前的線程等到喚醒為止,通常是<透過em>notified</em或em>interrupted</em>>,或<直到經過一定數量的實時為止。

(繼承來源 Object)
Wait(Int64, Int32)

讓目前的線程等到喚醒為止,通常是<透過em>notified</em或em>interrupted</em>>,或<直到經過一定數量的實時為止。

(繼承來源 Object)
WithAppendedId(Uri, Int64)

將指定的識別碼附加至路徑結尾。

明確介面實作

IJavaPeerable.Disposed()

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)
IJavaPeerable.DisposeUnlessReferenced()

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)
IJavaPeerable.Finalized()

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)
IJavaPeerable.JniManagedPeerState

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

(繼承來源 Object)

擴充方法

JavaCast<TResult>(IJavaObject)

執行 Android 執行時間檢查的類型轉換。

JavaCast<TResult>(IJavaObject)

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

GetJniTypeName(IJavaPeerable)

公用程式方法適用於使用 android.net.Uri 使用 &商的物件;內容&商; (content://) 配置。

適用於