Compartilhar via


PropertyPath.Size Method

Definition

Returns the number of PathSegments in the PropertyPath.

[Android.Runtime.Register("size", "()I", "GetSizeHandler", ApiSince=34)]
public virtual int Size ();
[<Android.Runtime.Register("size", "()I", "GetSizeHandler", ApiSince=34)>]
abstract member Size : unit -> int
override this.Size : unit -> int

Returns

Attributes

Remarks

Returns the number of PathSegments in the PropertyPath.

Paths representing "foo.bar" and "foo[1].bar[1]" will have the same size, as a property and an index into that property are stored in one PathSegment.

Java documentation for android.app.appsearch.PropertyPath.size().

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