AppSearchSchema.StringPropertyConfig.Builder.SetIndexingType(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
配置屬性的索引方式,使查詢能取得該屬性。
[Android.Runtime.Register("setIndexingType", "(I)Landroid/app/appsearch/AppSearchSchema$StringPropertyConfig$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.AppSearchSchema.StringPropertyConfig.Builder SetIndexingType(int indexingType);
[<Android.Runtime.Register("setIndexingType", "(I)Landroid/app/appsearch/AppSearchSchema$StringPropertyConfig$Builder;", "", ApiSince=31)>]
member this.SetIndexingType : int -> Android.App.AppSearch.AppSearchSchema.StringPropertyConfig.Builder
參數
- indexingType
- Int32
價值是以下之一:AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_NONE AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_EXACT_TERMS AppSearchSchema.StringPropertyConfig.INDEXING_TYPE_PREFIXES
傳回
- 屬性
備註
配置屬性的索引方式,使查詢能取得該屬性。 若未呼叫此方法,預設索引類型將StringPropertyConfig.INDEXING_TYPE_NONE,無法被查詢匹配。
Android 參考資料。android.app.appsearch.AppSearchSchema.StringPropertyConfig.Builder.setIndexingType
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。