SearchSpec.Builder.AddProjection(String, ICollection<String>) 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.
Adds property paths for the specified type to be used for projection.
[Android.Runtime.Register("addProjection", "(Ljava/lang/String;Ljava/util/Collection;)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SearchSpec.Builder AddProjection(string schema, System.Collections.Generic.ICollection<string> propertyPaths);
[<Android.Runtime.Register("addProjection", "(Ljava/lang/String;Ljava/util/Collection;)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=31)>]
member this.AddProjection : string * System.Collections.Generic.ICollection<string> -> Android.App.AppSearch.SearchSpec.Builder
Parameters
- schema
- String
a string corresponding to the schema to add projections to. This value cannot be null.
- propertyPaths
- ICollection<String>
the projections to add. This value cannot be null.
Returns
- Attributes
Remarks
Adds property paths for the specified type to be used for projection. If property paths are added for a type, then only the properties referred to will be retrieved for results of that type. If a property path that is specified isn't present in a result, it will be ignored for that result. Property paths cannot be null.
Android reference for android.app.appsearch.SearchSpec.Builder.addProjection.
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.