SearchSpec.Builder.SetSnippetCount(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定 snippetCount,使得基於排名策略的首批 snippetCount 文件會提供摘要資訊。
[Android.Runtime.Register("setSnippetCount", "(I)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SearchSpec.Builder SetSnippetCount(int snippetCount);
[<Android.Runtime.Register("setSnippetCount", "(I)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)>]
member this.SetSnippetCount : int -> Android.App.AppSearch.SearchSpec.Builder
參數
- snippetCount
- Int32
數值介於 0 到 10000 之間(含)
傳回
這個建商實例。
- 屬性
備註
設定 snippetCount,使得基於排名策略的首批 snippetCount 文件會提供摘要資訊。 從 SearchResult.getMatchInfos 回傳的清單最多只會包含這麼多條目。 若設定為 0(預設),則會停用擷取功能,且從 SearchResult.getMatchInfos 回傳的清單將為空。
Android 參考資料。android.app.appsearch.SearchSpec.Builder.setSnippetCount
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。