語言

PropertyPath.PathSegment.Create 方法

定義

多載

名稱 Description
Create(String)

一種能接受並驗證屬性名稱的建立方法。 房產指數設定為NON_REPEATED_CARDINALITY。

Create(String, Int32)

建立方法同時接受並驗證屬性名稱及屬性索引。

Create(String)

一種能接受並驗證屬性名稱的建立方法。 房產指數設定為NON_REPEATED_CARDINALITY。

[Android.Runtime.Register("create", "(Ljava/lang/String;)Landroid/app/appsearch/PropertyPath$PathSegment;", "", ApiSince=34)]
public static Android.App.AppSearch.PropertyPath.PathSegment Create(string propertyName);
[<Android.Runtime.Register("create", "(Ljava/lang/String;)Landroid/app/appsearch/PropertyPath$PathSegment;", "", ApiSince=34)>]
static member Create : string -> Android.App.AppSearch.PropertyPath.PathSegment

參數

propertyName
String

房產名稱。 這個值不可能為零值。

傳回

一個新的路徑段。 這個值不可能為零值。

屬性

備註

一種能接受並驗證屬性名稱的建立方法。 房產指數設定為NON_REPEATED_CARDINALITY。

Android 參考資料。android.app.appsearch.PropertyPath.PathSegment.create

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

適用於

Create(String, Int32)

建立方法同時接受並驗證屬性名稱及屬性索引。

[Android.Runtime.Register("create", "(Ljava/lang/String;I)Landroid/app/appsearch/PropertyPath$PathSegment;", "", ApiSince=34)]
public static Android.App.AppSearch.PropertyPath.PathSegment Create(string propertyName, int propertyIndex);
[<Android.Runtime.Register("create", "(Ljava/lang/String;I)Landroid/app/appsearch/PropertyPath$PathSegment;", "", ApiSince=34)>]
static member Create : string * int -> Android.App.AppSearch.PropertyPath.PathSegment

參數

propertyName
String

房產名稱。 這個值不可能為零值。

propertyIndex
Int32

物業索引

傳回

一個新的路徑段。 這個值不可能為零值。

屬性

備註

建立方法同時接受並驗證屬性名稱及屬性索引。 物業名稱不得為空白。 它也可能不含方括號或點,因為它們是屬性路徑中的控制字元。 該屬性的索引可能不是負數,除非是NON_REPEATED_CARDINALITY,因為這些索引是無效的陣列索引。

Android 參考資料。android.app.appsearch.PropertyPath.PathSegment.create

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

適用於