語言

PropertyPath 類別

定義

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

[Android.Runtime.Register("android/app/appsearch/PropertyPath", ApiSince=34, DoNotGenerateAcw=true)]
public class PropertyPath : Java.Lang.Object, IDisposable, Java.Lang.IIterable
[<Android.Runtime.Register("android/app/appsearch/PropertyPath", ApiSince=34, DoNotGenerateAcw=true)>]
type PropertyPath = class
    inherit Object
    interface IIterable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
繼承
PropertyPath
屬性
實作

備註

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

這個類別的一個使用案例是在 AppSearch 資料庫中搜尋 snippet matching 的使用案例。 在這種情況下,你會收到 SearchResult.MatchInfo 包含屬性路徑的物件,該路徑標示了資料庫中匹配的位置。 這串字串看起來可能像「foo.bar[0]」。 PropertyPath 解析此字串並拆分成 List of PathSegments。 這些可以代表一個屬性,或是一個屬性與該屬性的 0 為基礎索引。 例如,「foo.bar[1]」會被解析成 PathSegment 一個屬性名稱為 foo,而 a PathSegment 的屬性名稱為 bar,索引為 1。 這使得操作屬性路徑變得更容易。

這個類別不會執行任何檢索,它只會解析路徑字串。 因此,它不一定指資料庫中的有效路徑。

Java 文件 android.app.appsearch.PropertyPath。

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

建構函式

名稱 Description
PropertyPath(IList<PropertyPath.PathSegment>)

建構子直接接受路徑清單

PropertyPath(IntPtr, JniHandleOwnership)

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

PropertyPath(String)

解析代表路徑的字串以填充 List of PathSegments 的建構器

屬性

名稱 Description
Class

回傳此 Object的執行時類別。

(繼承來源 Object)
Handle

底層 Android 實例的帳號。

(繼承來源 Object)
JniIdentityHashCode

取得由互通執行時指派給此 Java 對等端的身份雜湊碼。

(繼承來源 Object)
JniManagedPeerState

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

(繼承來源 JavaObject)
JniPeerMembers

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

PeerReference

取得這個 Java 節點的 JNI 物件參考。

(繼承來源 Object)
ThresholdClass

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

ThresholdType

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

方法

名稱 Description
Clone()

建立並回傳此物件的副本。

(繼承來源 Object)
Construct(JniObjectReference, JniObjectReferenceOptions)

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

(繼承來源 JavaObject)
Dispose()

釋放該 Java 節點所持有的資源。

(繼承來源 Object)
Dispose(Boolean)

釋放該 Java 節點所持有的資源。

(繼承來源 Object)
DisposeUnlessReferenced()

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

(繼承來源 JavaObject)
Equals(Object)

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

(繼承來源 JavaObject)
Equals(Object)

表示是否有其他物體「等同」於此物。

(繼承來源 Object)
Get(Int32)

回傳 PathSegment 在 PropertyPath 指定的索引處。

GetHashCode()

回傳物件的雜湊碼值。

(繼承來源 Object)
Iterator()

回傳 PropertyPath 內 PathSegments 的迭代器

JavaFinalize()
已淘汰.

當垃圾回收判定該物件不再有相關參考時,由垃圾回收器呼叫。

(繼承來源 Object)
Notify()

喚醒一個正在該物件監視器上等待的執行緒。

(繼承來源 Object)
NotifyAll()

喚醒所有等待該物件監視器的執行緒。

(繼承來源 Object)
SetHandle(IntPtr, JniHandleOwnership)

設定 Handle 屬性。

(繼承來源 Object)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions)

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

(繼承來源 JavaObject)
Size()

回傳 PropertyPath 中的 s 數量 PathSegment。

ToArray<T>()

從這個 Java 陣列包裝器建立一個受管理陣列。

(繼承來源 Object)
ToString()

回傳物件的字串表示。

(繼承來源 Object)
UnregisterFromRuntime()

將此 Java 節點從互通執行時中取消註冊。

(繼承來源 Object)
Wait()

導致目前執行緒等待被喚醒,通常是透過 <em>通知</><em 或 em>中斷</em> 來喚醒。

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

會讓目前執行緒等待喚醒,通常是透過 <em>通知</><em 或 em>中斷</em>,或是經過一定的真實時間。

(繼承來源 Object)
Wait(Int64)

會讓目前執行緒等待喚醒,通常是透過 <em>通知</><em 或 em>中斷</em>,或是經過一定的真實時間。

(繼承來源 Object)

明確介面實作

名稱 Description
IIterable.Iterator()

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

IJavaPeerable.Disposed()

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

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

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

(繼承來源 JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

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

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

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

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

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

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

(繼承來源 JavaObject)
IJavaPeerable.UnregisterFromRuntime()

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

擴充方法

名稱 Description
GetJniTypeName(IJavaPeerable)

取得實例 self類型的 JNI 名稱。

JavaAs<TResult>(IJavaPeerable)

試著強制self輸入 TResult,檢查 強制在 Java 端是否有效。

JavaCast<TResult>(IJavaObject)

執行 Android 執行時檢查型別轉換。

JavaCast<TResult>(IJavaObject)

代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。

ToEnumerable(IIterable)

回傳 和 IEnumerable ,會對 Java IIterable進行迭代,允許 foreach 和 LINQ 與 Java 集合類型一起使用。 每個元素都會從其 Java 實例編組到對應的受管理型別。

ToEnumerable<T>(IIterable)

回傳 和 IEnumerable<T> ,該 在 Java IIterable上迭代,將每個元素 集結為 T。 這使得 foreach LINQ 可以搭配 Java 集合類型一起使用。

TryJavaCast<TResult>(IJavaPeerable, TResult)

試著強制self輸入 TResult,檢查 強制在 Java 端是否有效。

適用於