SearchSuggestionSpec.Builder.AddFilterNamespaces Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AddFilterNamespaces(ICollection<String>) |
Adds a namespace filter to SearchSuggestionSpec Entry. |
| AddFilterNamespaces(String[]) |
Adds a namespace filter to SearchSuggestionSpec Entry. |
AddFilterNamespaces(ICollection<String>)
Adds a namespace filter to SearchSuggestionSpec Entry.
[Android.Runtime.Register("addFilterNamespaces", "(Ljava/util/Collection;)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=34)]
public Android.App.AppSearch.SearchSuggestionSpec.Builder AddFilterNamespaces(System.Collections.Generic.ICollection<string> namespaces);
[<Android.Runtime.Register("addFilterNamespaces", "(Ljava/util/Collection;)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=34)>]
member this.AddFilterNamespaces : System.Collections.Generic.ICollection<string> -> Android.App.AppSearch.SearchSuggestionSpec.Builder
Parameters
- namespaces
- ICollection<String>
Returns
- Attributes
Remarks
Adds a namespace filter to SearchSuggestionSpec Entry. Only search for suggestions that has documents under the specified namespaces. If unset, the query will search over all namespaces.
Android reference for android.app.appsearch.SearchSuggestionSpec.Builder.addFilterNamespaces.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
AddFilterNamespaces(String[])
Adds a namespace filter to SearchSuggestionSpec Entry.
[Android.Runtime.Register("addFilterNamespaces", "([Ljava/lang/String;)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=34)]
public Android.App.AppSearch.SearchSuggestionSpec.Builder AddFilterNamespaces(params string[] namespaces);
[<Android.Runtime.Register("addFilterNamespaces", "([Ljava/lang/String;)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=34)>]
member this.AddFilterNamespaces : string[] -> Android.App.AppSearch.SearchSuggestionSpec.Builder
Parameters
- namespaces
- String[]
Returns
- Attributes
Remarks
Adds a namespace filter to SearchSuggestionSpec Entry. Only search for suggestions that has documents under the specified namespaces. If unset, the query will search over all namespaces.
Android reference for android.app.appsearch.SearchSuggestionSpec.Builder.addFilterNamespaces.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.