Partager via


GenericDocument.GetPropertyDocumentArray(String) Method

Definition

Retrieves a repeated GenericDocument property by path.

[Android.Runtime.Register("getPropertyDocumentArray", "(Ljava/lang/String;)[Landroid/app/appsearch/GenericDocument;", "GetGetPropertyDocumentArray_Ljava_lang_String_Handler", ApiSince=31)]
public virtual Android.App.AppSearch.GenericDocument[]? GetPropertyDocumentArray (string path);
[<Android.Runtime.Register("getPropertyDocumentArray", "(Ljava/lang/String;)[Landroid/app/appsearch/GenericDocument;", "GetGetPropertyDocumentArray_Ljava_lang_String_Handler", ApiSince=31)>]
abstract member GetPropertyDocumentArray : string -> Android.App.AppSearch.GenericDocument[]
override this.GetPropertyDocumentArray : string -> Android.App.AppSearch.GenericDocument[]

Parameters

path
String

The path to look for.

Returns

The GenericDocument[] associated with the given path, or null if no value is set or the value is of a different type.

Attributes

Remarks

Retrieves a repeated GenericDocument property by path.

See #getProperty for a detailed description of the path syntax.

If the property has not been set via Builder#setPropertyDocument, this method returns null.

If it has been set via Builder#setPropertyDocument to an empty GenericDocument[], this method returns an empty GenericDocument[] starting in android.os.Build.VERSION_CODES#TIRAMISU Android T and null in earlier versions of Android.

Java documentation for android.app.appsearch.GenericDocument.getPropertyDocumentArray(java.lang.String).

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