SearchSpec.Builder.AddFilterPackageNames 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 |
|---|---|
| AddFilterPackageNames(ICollection<String>) |
Adds a package name filter to SearchSpec Entry. |
| AddFilterPackageNames(String[]) |
Adds a package name filter to SearchSpec Entry. |
AddFilterPackageNames(ICollection<String>)
Adds a package name filter to SearchSpec Entry.
[Android.Runtime.Register("addFilterPackageNames", "(Ljava/util/Collection;)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SearchSpec.Builder AddFilterPackageNames(System.Collections.Generic.ICollection<string> packageNames);
[<Android.Runtime.Register("addFilterPackageNames", "(Ljava/util/Collection;)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)>]
member this.AddFilterPackageNames : System.Collections.Generic.ICollection<string> -> Android.App.AppSearch.SearchSpec.Builder
Parameters
- packageNames
- ICollection<String>
Returns
- Attributes
Remarks
Adds a package name filter to SearchSpec Entry. Only search for documents that were indexed from the specified packages. If unset, the query will search over all packages that the caller has access to. If package names are specified which caller doesn't have access to, then those package names will be ignored.
Android reference for android.app.appsearch.SearchSpec.Builder.addFilterPackageNames.
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
AddFilterPackageNames(String[])
Adds a package name filter to SearchSpec Entry.
[Android.Runtime.Register("addFilterPackageNames", "([Ljava/lang/String;)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SearchSpec.Builder AddFilterPackageNames(params string[] packageNames);
[<Android.Runtime.Register("addFilterPackageNames", "([Ljava/lang/String;)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)>]
member this.AddFilterPackageNames : string[] -> Android.App.AppSearch.SearchSpec.Builder
Parameters
- packageNames
- String[]
Returns
- Attributes
Remarks
Adds a package name filter to SearchSpec Entry. Only search for documents that were indexed from the specified packages. If unset, the query will search over all packages that the caller has access to. If package names are specified which caller doesn't have access to, then those package names will be ignored.
Android reference for android.app.appsearch.SearchSpec.Builder.addFilterPackageNames.
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.