SearchResult.Builder.SetParentTypeMap 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.
Sets the map from schema type names to the list of their parent types.
[Android.Runtime.Register("setParentTypeMap", "(Ljava/util/Map;)Landroid/app/appsearch/SearchResult$Builder;", "", ApiSince=36)]
public Android.App.AppSearch.SearchResult.Builder SetParentTypeMap(System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<string>> parentTypeMap);
[<Android.Runtime.Register("setParentTypeMap", "(Ljava/util/Map;)Landroid/app/appsearch/SearchResult$Builder;", "", ApiSince=36)>]
member this.SetParentTypeMap : System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<string>> -> Android.App.AppSearch.SearchResult.Builder
Parameters
- parentTypeMap
- IDictionary<String,IList<String>>
Returns
- Attributes
Remarks
Sets the map from schema type names to the list of their parent types. The map should include entries for the GenericDocument 's own type and all of the nested documents' types. Child types must appear before parent types in each list. Otherwise, the GenericDocument's toDocumentClass method (an AndroidX-only API) may not correctly identify the most concrete type. This could lead to unintended deserialization into a more general type instead of a more specific type. Parent types should include transitive parents.
Android reference for android.app.appsearch.SearchResult.Builder.setParentTypeMap.
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.