語言

PropertyPath.Get(Int32) 方法

定義

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

[Android.Runtime.Register("get", "(I)Landroid/app/appsearch/PropertyPath$PathSegment;", "GetGet_IHandler", ApiSince=34)]
public virtual Android.App.AppSearch.PropertyPath.PathSegment Get(int index);
[<Android.Runtime.Register("get", "(I)Landroid/app/appsearch/PropertyPath$PathSegment;", "GetGet_IHandler", ApiSince=34)>]
abstract member Get : int -> Android.App.AppSearch.PropertyPath.PathSegment
override this.Get : int -> Android.App.AppSearch.PropertyPath.PathSegment

參數

index
Int32

進入 PropertyPath 的位置

傳回

屬性

備註

回傳 PathSegment 在 PropertyPath 指定的索引處。 在代表「foo.bar[1]」的 PropertyPath 上呼叫 get(1) 時,會回傳一個代表「bar[1]」的 PathSegment。 無論有或沒有屬性索引為 PathSegment.NON_REPEATED_CARDINALITY 的路徑段 s,檢索方式相同。

Android 參考資料。android.app.appsearch.PropertyPath.get

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

適用於