AppSearchSchema.StringPropertyConfig.Builder.SetCardinality(Int32) 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 cardinality of the property (whether it is optional, required or repeated).
[Android.Runtime.Register("setCardinality", "(I)Landroid/app/appsearch/AppSearchSchema$StringPropertyConfig$Builder;", "", ApiSince=31)]
public Android.App.AppSearch.AppSearchSchema.StringPropertyConfig.Builder SetCardinality(int cardinality);
[<Android.Runtime.Register("setCardinality", "(I)Landroid/app/appsearch/AppSearchSchema$StringPropertyConfig$Builder;", "", ApiSince=31)>]
member this.SetCardinality : int -> Android.App.AppSearch.AppSearchSchema.StringPropertyConfig.Builder
Parameters
- cardinality
- Int32
Value is one of the following: AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL AppSearchSchema.PropertyConfig.CARDINALITY_REQUIRED
Returns
- Attributes
Remarks
Sets the cardinality of the property (whether it is optional, required or repeated). If this method is not called, the default cardinality is PropertyConfig.CARDINALITY_OPTIONAL.
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.