Language

SearchSpec.Builder.AddFilterNamespaces Method

Definition

Overloads

Name Description
AddFilterNamespaces(ICollection<String>)

Adds a namespace filter to SearchSpec Entry.

AddFilterNamespaces(String[])

Adds a namespace filter to SearchSpec Entry.

AddFilterNamespaces(ICollection<String>)

Adds a namespace filter to SearchSpec Entry.

[Android.Runtime.Register("addFilterNamespaces", "(Ljava/util/Collection;)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SearchSpec.Builder AddFilterNamespaces(System.Collections.Generic.ICollection<string> namespaces);
[<Android.Runtime.Register("addFilterNamespaces", "(Ljava/util/Collection;)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)>]
member this.AddFilterNamespaces : System.Collections.Generic.ICollection<string> -> Android.App.AppSearch.SearchSpec.Builder

Parameters

namespaces
ICollection<String>

Returns

Attributes

Remarks

Adds a namespace filter to SearchSpec Entry. Only search for documents that have the specified namespaces. If unset, the query will search over all namespaces.

Android reference for android.app.appsearch.SearchSpec.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 SearchSpec Entry.

[Android.Runtime.Register("addFilterNamespaces", "([Ljava/lang/String;)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SearchSpec.Builder AddFilterNamespaces(params string[] namespaces);
[<Android.Runtime.Register("addFilterNamespaces", "([Ljava/lang/String;)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)>]
member this.AddFilterNamespaces : string[] -> Android.App.AppSearch.SearchSpec.Builder

Parameters

namespaces
String[]

Returns

Attributes

Remarks

Adds a namespace filter to SearchSpec Entry. Only search for documents that have the specified namespaces. If unset, the query will search over all namespaces.

Android reference for android.app.appsearch.SearchSpec.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