PropertyPath.PathSegment.Create Method

Definition

Overloads

Name Description
Create(String)

Creation method that accepts and validates a property name. The property index is set to NON_REPEATED_CARDINALITY.

Create(String, Int32)

Creation method that accepts and validates both a property name and the index into the property.

Create(String)

Creation method that accepts and validates a property name. The property index is set to NON_REPEATED_CARDINALITY.

[Android.Runtime.Register("create", "(Ljava/lang/String;)Landroid/app/appsearch/PropertyPath$PathSegment;", "", ApiSince=34)]
public static Android.App.AppSearch.PropertyPath.PathSegment Create(string propertyName);
[<Android.Runtime.Register("create", "(Ljava/lang/String;)Landroid/app/appsearch/PropertyPath$PathSegment;", "", ApiSince=34)>]
static member Create : string -> Android.App.AppSearch.PropertyPath.PathSegment

Parameters

propertyName
String

the name of the property. This value cannot be null.

Returns

A new PathSegment. This value cannot be null.

Attributes

Remarks

Creation method that accepts and validates a property name. The property index is set to NON_REPEATED_CARDINALITY.

Android reference for android.app.appsearch.PropertyPath.PathSegment.create.

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

Create(String, Int32)

Creation method that accepts and validates both a property name and the index into the property.

[Android.Runtime.Register("create", "(Ljava/lang/String;I)Landroid/app/appsearch/PropertyPath$PathSegment;", "", ApiSince=34)]
public static Android.App.AppSearch.PropertyPath.PathSegment Create(string propertyName, int propertyIndex);
[<Android.Runtime.Register("create", "(Ljava/lang/String;I)Landroid/app/appsearch/PropertyPath$PathSegment;", "", ApiSince=34)>]
static member Create : string * int -> Android.App.AppSearch.PropertyPath.PathSegment

Parameters

propertyName
String

the name of the property. This value cannot be null.

propertyIndex
Int32

the index into the property

Returns

A new PathSegment. This value cannot be null.

Attributes

Remarks

Creation method that accepts and validates both a property name and the index into the property. The property name may not be blank. It also may not contain square brackets or dots, as they are control characters in property paths. The index into the property may not be negative, unless it is NON_REPEATED_CARDINALITY, as these are invalid array indices.

Android reference for android.app.appsearch.PropertyPath.PathSegment.create.

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