PropertyPath 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表從 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
- 繼承
- 屬性
- 實作
備註
代表從 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 |
回傳此 |
| 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 數量 |
| 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) |
取得實例 |
| JavaAs<TResult>(IJavaPeerable) |
試著強制 |
| JavaCast<TResult>(IJavaObject) |
執行 Android 執行時檢查型別轉換。 |
| JavaCast<TResult>(IJavaObject) |
代表從 AppSearch 資料庫中搜尋回傳的屬性路徑。 |
| ToEnumerable(IIterable) |
回傳 和 IEnumerable ,會對 Java IIterable進行迭代,允許 |
| ToEnumerable<T>(IIterable) |
回傳 和 IEnumerable<T> ,該 在 Java IIterable上迭代,將每個元素 集結為 |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
試著強制 |