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