SetSchemaRequest.Builder.SetForceOverride(Boolean) 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 whether or not to override the current schema in the AppSearchSession database.
[Android.Runtime.Register("setForceOverride", "(Z)Landroid/app/appsearch/SetSchemaRequest$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.SetSchemaRequest.Builder SetForceOverride(bool forceOverride);
[<Android.Runtime.Register("setForceOverride", "(Z)Landroid/app/appsearch/SetSchemaRequest$Builder;", "", ApiSince=31)>]
member this.SetForceOverride : bool -> Android.App.AppSearch.SetSchemaRequest.Builder
Parameters
- forceOverride
- Boolean
Whether to enable the request's force-override setting.
Returns
This builder instance.
- Attributes
Remarks
Sets whether or not to override the current schema in the AppSearchSession database. Without active migrators, enabling force override permits incompatible documents to be deleted when the schema is updated. Configured migrators can transform and restore documents. By default, this is false.
Android reference for android.app.appsearch.SetSchemaRequest.Builder.setForceOverride.
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.